Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC statically linked Pin
naradaji31-Jan-03 3:24
naradaji31-Jan-03 3:24 
GeneralRe: MFC statically linked Pin
naradaji31-Jan-03 3:36
naradaji31-Jan-03 3:36 
GeneralRe: MFC statically linked Pin
Abbas_Riazi1-Feb-03 3:32
professionalAbbas_Riazi1-Feb-03 3:32 
GeneralRe: MFC statically linked Pin
naradaji2-Feb-03 21:56
naradaji2-Feb-03 21:56 
GeneralINet detect[?] Pin
BlackSmith31-Jan-03 2:54
BlackSmith31-Jan-03 2:54 
GeneralRe: INet detect[?] Pin
HENDRIK R31-Jan-03 3:08
HENDRIK R31-Jan-03 3:08 
GeneralInterface fra pc til PLC Pin
Jesper Rahbek31-Jan-03 2:52
Jesper Rahbek31-Jan-03 2:52 
QuestionMinimize-Restore will trigger WM_COMMAND? Pin
Mike Eriksson31-Jan-03 2:41
Mike Eriksson31-Jan-03 2:41 
Hello!

I have a strange problem. I have a standard SDI - FormView application. On the form I have two check boxes (which I have set to buttons), they are called IDC_AUTOMAT and IDC_MANUAL. I have used DDX to handle the events(created with ClassWizard), OnAutomat() and OnManual().

My problem is that if I have IDC_MANUEL checked and minimizes the application and then restore it. Somehow the OnAutomat is called. I can't figure out where this happens and how I avoid it?

Please help!Confused | :confused:

Below is the call stack when I set a breakpoint in OnAutomat().

CCOMSmartistView::OnAutomat() line 1264
_AfxDispatchCmdMsg(CCmdTarget * 0x00442180 {CCOMSmartistView hWnd=0x04c50a10}, unsigned int 2008, int 0, void (void)* 0x004014f6 CCOMSmartistView::OnAutomat(void), void * 0x00000000, unsigned int 12, AFX_CMDHANDLERINFO * 0x00000000) line 88
CCmdTarget::OnCmdMsg(unsigned int 2008, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 302 + 39 bytes
CView::OnCmdMsg(unsigned int 2008, int 0, void * 0x00000000, AFX_CMDHANDLERINFO * 0x00000000) line 162 + 24 bytes
CWnd::OnCommand(unsigned int 2008, long 22088222) line 2088
CWnd::OnWndMsg(unsigned int 273, unsigned int 2008, long 22088222, long * 0x0012f304) line 1597 + 28 bytes
CWnd::WindowProc(unsigned int 273, unsigned int 2008, long 22088222) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x00442180 {CCOMSmartistView hWnd=0x04c50a10}, HWND__ * 0x04c50a10, unsigned int 273, unsigned int 2008, long 22088222) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x04c50a10, unsigned int 273, unsigned int 2008, long 22088222) line 368
AfxWndProcBase(HWND__ * 0x04c50a10, unsigned int 273, unsigned int 2008, long 22088222) line 220 + 21 bytes
USER32! 77e72211()
USER32! 77e7356c()
USER32! 77e86e01()
USER32! 77e85f71()
USER32! 77e72c6a()
USER32! 77e72cf5()
CWnd::DefWindowProcA(unsigned int 7, unsigned int 80022032, long 0) line 1000 + 32 bytes
CWnd::WindowProc(unsigned int 7, unsigned int 80022032, long 0) line 1586 + 26 bytes
AfxCallWndProc(CWnd * 0x00442300 {CButton hWnd=0x01510a1e}, HWND__ * 0x01510a1e, unsigned int 7, unsigned int 80022032, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x01510a1e, unsigned int 7, unsigned int 80022032, long 0) line 368
AfxWndProcBase(HWND__ * 0x01510a1e, unsigned int 7, unsigned int 80022032, long 0) line 220 + 21 bytes
USER32! 77e71303()
USER32! 77e71962()
NTDLL! 77f763ef()
CWnd::OnWndMsg(unsigned int 7, unsigned int 11405702, long 0, long * 0x0012f7bc) line 1872
CWnd::WindowProc(unsigned int 7, unsigned int 11405702, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x00442180 {CCOMSmartistView hWnd=0x04c50a10}, HWND__ * 0x04c50a10, unsigned int 7, unsigned int 11405702, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x04c50a10, unsigned int 7, unsigned int 11405702, long 0) line 368
AfxWndProcBase(HWND__ * 0x04c50a10, unsigned int 7, unsigned int 11405702, long 0) line 220 + 21 bytes
USER32! 77e71303()
USER32! 77e71962()
NTDLL! 77f763ef()
CFrameWnd::OnSetFocus(CWnd * 0x00000000 {CWnd hWnd=???}) line 1210
CWnd::OnWndMsg(unsigned int 7, unsigned int 0, long 0, long * 0x0012fa38) line 1872
CWnd::WindowProc(unsigned int 7, unsigned int 0, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x00442700 {CMainFrame hWnd=0x00ae0986}, HWND__ * 0x00ae0986, unsigned int 7, unsigned int 0, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x00ae0986, unsigned int 7, unsigned int 0, long 0) line 368
AfxWndProcBase(HWND__ * 0x00ae0986, unsigned int 7, unsigned int 0, long 0) line 220 + 21 bytes
USER32! 77e71303()
USER32! 77e71962()
NTDLL! 77f763ef()
USER32! 77e71350()
USER32! 77e72c6a()
USER32! 77e72cf5()
CWnd::DefWindowProcA(unsigned int 274, unsigned int 61728, long 0) line 1000 + 32 bytes
CWnd::Default() line 249
CWnd::OnSysCommand(unsigned int 61728, unsigned int 61728) line 418 + 15 bytes
CFrameWnd::OnSysCommand(unsigned int 61728, long 0) line 1046
CWnd::OnWndMsg(unsigned int 274, unsigned int 61728, long 0, long * 0x0012fd98) line 1849
CWnd::WindowProc(unsigned int 274, unsigned int 61728, long 0) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x00442700 {CMainFrame hWnd=0x00ae0986}, HWND__ * 0x00ae0986, unsigned int 274, unsigned int 61728, long 0) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x00ae0986, unsigned int 274, unsigned int 61728, long 0) line 368
AfxWndProcBase(HWND__ * 0x00ae0986, unsigned int 274, unsigned int 61728, long 0) line 220 + 21 bytes


Mike Eriksson
Sonork 100.21825
AnswerRe: Minimize-Restore will trigger WM_COMMAND? Pin
Neville Franks31-Jan-03 10:24
Neville Franks31-Jan-03 10:24 
GeneralRe: Minimize-Restore will trigger WM_COMMAND? Pin
Mike Eriksson2-Feb-03 23:16
Mike Eriksson2-Feb-03 23:16 
GeneralRe: Minimize-Restore will trigger WM_COMMAND? Pin
Neville Franks3-Feb-03 9:27
Neville Franks3-Feb-03 9:27 
GeneralRe: Minimize-Restore will trigger WM_COMMAND? Pin
Mike Eriksson3-Feb-03 22:08
Mike Eriksson3-Feb-03 22:08 
GeneralChanging registry key Pin
Rage31-Jan-03 2:12
professionalRage31-Jan-03 2:12 
GeneralRe: Changing registry key Pin
Rickard Andersson2031-Jan-03 2:24
Rickard Andersson2031-Jan-03 2:24 
GeneralRe: Changing registry key Pin
Rage31-Jan-03 5:06
professionalRage31-Jan-03 5:06 
GeneralRe: Changing registry key Pin
Rage31-Jan-03 5:53
professionalRage31-Jan-03 5:53 
GeneralRe: Changing registry key Pin
xxhimanshu31-Jan-03 19:12
xxhimanshu31-Jan-03 19:12 
GeneralRe: Changing registry key Pin
Abbas_Riazi1-Feb-03 3:36
professionalAbbas_Riazi1-Feb-03 3:36 
GeneralClient/Server advice please! Pin
Rickard Andersson2031-Jan-03 1:52
Rickard Andersson2031-Jan-03 1:52 
GeneralRe: Client/Server advice please! Pin
valikac31-Jan-03 5:51
valikac31-Jan-03 5:51 
GeneralRe: Client/Server advice please! Pin
Rickard Andersson2031-Jan-03 6:47
Rickard Andersson2031-Jan-03 6:47 
GeneralRe: Client/Server advice please! Pin
Rohit  Sinha31-Jan-03 7:19
Rohit  Sinha31-Jan-03 7:19 
GeneralRe: Client/Server advice please! Pin
Moak1-Feb-03 3:04
Moak1-Feb-03 3:04 
GeneralRe: Client/Server advice please! Pin
Rickard Andersson201-Feb-03 4:29
Rickard Andersson201-Feb-03 4:29 
GeneralRe: Client/Server advice please! Pin
Moak1-Feb-03 4:49
Moak1-Feb-03 4:49 

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.