Click here to Skip to main content
13,627,551 members

C / C++ / MFC

 
GeneralRe: Changing Display gamma Pin
Jochen Arndt9-Jul-18 2:59
mvpJochen Arndt9-Jul-18 2:59 
GeneralRe: Changing Display gamma Pin
Valentinor9-Jul-18 10:51
memberValentinor9-Jul-18 10:51 
GeneralRe: Changing Display gamma Pin
Jochen Arndt9-Jul-18 21:00
mvpJochen Arndt9-Jul-18 21:00 
GeneralRe: Changing Display gamma Pin
Valentinor9-Jul-18 22:36
memberValentinor9-Jul-18 22:36 
GeneralRe: Changing Display gamma Pin
Valentinor9-Jul-18 23:33
memberValentinor9-Jul-18 23:33 
GeneralRe: Changing Display gamma Pin
Jochen Arndt9-Jul-18 23:50
mvpJochen Arndt9-Jul-18 23:50 
GeneralRe: Changing Display gamma Pin
Valentinor10-Jul-18 1:10
memberValentinor10-Jul-18 1:10 
QuestionMouse Wheel scrolling support for MFC application. Pin
Member 139038189-Jul-18 0:01
memberMember 139038189-Jul-18 0:01 
Hi sir,

i am working on MFC VC++ and i am very new to MFC application development. kindly please help me.

our application tool have a vertical scrollbar. it's working with the dragging.but not working with the mouse wheel. kindly please let me know what kind of code support have to give for mouse wheel.

i am using the below classes for creating the frame window.

1.class CMainFrame : public CFrameWndEx
{
.......

CMainFrame(); // main SDI frame window

...........
}
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (!CreateToolBar())
{
TRACE0("Failed to create Ribbon bar\n");
return -1; // fail to create
}

if (!m_wndStatusBar.Create(this) )
{
TRACE0("Failed to create status bar\n");
return -1; // fail to create
}

m_wndStatusBar.AddElement(new CMFCRibbonStatusBarPane(ID_STATUSBAR_STATUS, csStatus, TRUE), csStatus);
	m_wndStatusBar.AddSeparator();
	m_wndStatusBar.AddElement(new CMFCRibbonStatusBarPane(ID_STATUSBAR_VER, csVersion, TRUE), csVersion);
	m_wndStatusBar.AddSeparator();
	m_wndStatusBar.AddElement(new CMFCRibbonStatusBarPane(ID_STATUSBAR_MEMORY, csMemory, TRUE), csMemory);
	m_wndStatusBar.AddSeparator();
	m_wndStatusBar.AddElement(new CMFCRibbonStatusBarPane(ID_STATUSBAR_SECURITY, csSecurity, TRUE), csSecurity);
	
	theApp.SetMainFrame(this);

}

kindly please let me know how to handle the mouse wheel messages and what are steps have to follow to enable this.

AnswerRe: Mouse Wheel scrolling support for MFC application. Pin
Jochen Arndt9-Jul-18 0:52
mvpJochen Arndt9-Jul-18 0:52 
GeneralRe: Mouse Wheel scrolling support for MFC application. Pin
Member 139038189-Jul-18 19:16
memberMember 139038189-Jul-18 19:16 
GeneralRe: Mouse Wheel scrolling support for MFC application. Pin
Victor Nijegorodov9-Jul-18 20:37
memberVictor Nijegorodov9-Jul-18 20:37 
GeneralRe: Mouse Wheel scrolling support for MFC application. Pin
Member 139038189-Jul-18 21:04
memberMember 139038189-Jul-18 21:04 
GeneralRe: Mouse Wheel scrolling support for MFC application. Pin
Jochen Arndt10-Jul-18 0:10
mvpJochen Arndt10-Jul-18 0:10 
GeneralRe: Mouse Wheel scrolling support for MFC application. Pin
Member 1390381810-Jul-18 22:50
memberMember 1390381810-Jul-18 22:50 
GeneralRe: Mouse Wheel scrolling support for MFC application. Pin
Jochen Arndt10-Jul-18 23:10
mvpJochen Arndt10-Jul-18 23:10 
QuestionObject pointer as method argument Pin
_Flaviu8-Jul-18 0:43
member_Flaviu8-Jul-18 0:43 
AnswerRe: Object pointer as method argument Pin
Richard MacCutchan8-Jul-18 7:23
protectorRichard MacCutchan8-Jul-18 7:23 
GeneralRe: Object pointer as method argument Pin
_Flaviu8-Jul-18 19:57
member_Flaviu8-Jul-18 19:57 
NewsRe: Object pointer as method argument Pin
Richard MacCutchan9-Jul-18 3:01
protectorRichard MacCutchan9-Jul-18 3:01 
AnswerRe: Object pointer as method argument Pin
CPallini8-Jul-18 20:59
mvpCPallini8-Jul-18 20:59 
GeneralRe: Object pointer as method argument Pin
_Flaviu9-Jul-18 5:45
member_Flaviu9-Jul-18 5:45 
QuestionMFC Static Library Project Pin
Richard Andrew x647-Jul-18 16:04
professionalRichard Andrew x647-Jul-18 16:04 
AnswerRe: MFC Static Library Project Pin
Victor Nijegorodov7-Jul-18 21:48
memberVictor Nijegorodov7-Jul-18 21:48 
GeneralRe: MFC Static Library Project Pin
Richard Andrew x648-Jul-18 3:26
professionalRichard Andrew x648-Jul-18 3:26 
QuestionUsing fstream with USB Serial Port Pin
OscardelaGrouch6-Jul-18 20:53
memberOscardelaGrouch6-Jul-18 20:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.180712.1 | Last Updated 17 Jul 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid