Click here to Skip to main content
15,900,254 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HTML parser Pin
Jack Puppy14-May-05 15:35
Jack Puppy14-May-05 15:35 
GeneralRe: HTML parser Pin
princess sarah14-May-05 19:45
princess sarah14-May-05 19:45 
GeneralRe: HTML parser Pin
Jack Puppy14-May-05 20:29
Jack Puppy14-May-05 20:29 
GeneralRe: HTML parser Pin
princess sarah14-May-05 23:01
princess sarah14-May-05 23:01 
GeneralIrene Pin
irene_haydon14-May-05 10:22
irene_haydon14-May-05 10:22 
GeneralRe: Irene Pin
PJ Arends14-May-05 10:40
professionalPJ Arends14-May-05 10:40 
GeneralRe: Irene Pin
Andrew Kirillov14-May-05 10:40
Andrew Kirillov14-May-05 10:40 
GeneralWM_SHOWWINDOW Pin
SJFreeland14-May-05 9:53
SJFreeland14-May-05 9:53 
I created an Studio 6.0 SDI program called ShowWinTest with the defaults. In the ClassWizard, I added a function for WM_SHOWWINDOW in both the CMainFrm and CShowWinTestView classes. Then I placed a ::MessageBox call in each of the OnShowWindow callbacks. When I run the program, I see the ::MessagesBox dialog boxes on startup as expected. When I hide (by clicking on a window BEHIND the ShowWinTest window), or show (by clicking the ShowWinTest task bar button), or iconify (by clicking the ShowWinTest MINIMIZE button), or restore the window ( again by clicking the ShowWinTest task bar button), no ::MessageBox dialogs appear! When I terminate the program (by clicking the CLOSE "X" button), I get the ::MessageBox dialog only for the MainFrm callback.

The docs clearly state the WM_SHOWWINDOW windows message will be sent (which should then call my OnShowWindow callbacks) when any of these hide/show activities are taking place:

"The framework calls this member function when the CWnd object is about to be hidden or shown. A window is hidden or shown when the ShowWindow member function is called, when an overlapped window is maximized or restored, or when an overlapped or pop-up window is closed (made iconic) or opened (displayed on the screen). When an overlapped window is closed, all pop-up windows associated with that window are hidden."

What am I missing?

Stephen Freeland
Generallearning to work with SDKs and source code... Pin
psasidisrcum14-May-05 9:35
psasidisrcum14-May-05 9:35 
GeneralRe: learning to work with SDKs and source code... Pin
jc0dex14-May-05 10:08
jc0dex14-May-05 10:08 
GeneralRe: learning to work with SDKs and source code... Pin
psasidisrcum14-May-05 15:41
psasidisrcum14-May-05 15:41 
GeneralRe: learning to work with SDKs and source code... Pin
jc0dex14-May-05 18:51
jc0dex14-May-05 18:51 
GeneralRe: learning to work with SDKs and source code... Pin
S Douglas14-May-05 19:50
professionalS Douglas14-May-05 19:50 
GeneralAccessing network disk drives Pin
Still learning how to code14-May-05 9:15
Still learning how to code14-May-05 9:15 
GeneralRe: Accessing network disk drives Pin
Still learning how to code15-May-05 8:56
Still learning how to code15-May-05 8:56 
GeneralRe: Accessing network disk drives Pin
David Crow15-May-05 16:36
David Crow15-May-05 16:36 
Generaldisconnect pipes Pin
includeh1014-May-05 8:37
includeh1014-May-05 8:37 
GeneralRe: disconnect pipes Pin
Anonymous14-May-05 9:33
Anonymous14-May-05 9:33 
GeneralRe: disconnect pipes Pin
includeh1014-May-05 10:55
includeh1014-May-05 10:55 
GeneralRe: disconnect pipes Pin
Anonymous14-May-05 9:35
Anonymous14-May-05 9:35 
GeneralFile Selection Pin
Lampros Giampouras14-May-05 5:40
Lampros Giampouras14-May-05 5:40 
GeneralRe: File Selection Pin
jc0dex14-May-05 8:51
jc0dex14-May-05 8:51 
GeneralRe: File Selection Pin
Graham Bradshaw14-May-05 13:39
Graham Bradshaw14-May-05 13:39 
GeneralRe: File Selection Pin
Lampros Giampouras15-May-05 1:05
Lampros Giampouras15-May-05 1:05 
QuestionWhat does this type defination mean? Pin
sacoskun14-May-05 4:34
sacoskun14-May-05 4:34 

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.