When does a window appear?
-
Hi, I 'd like to ask an MFC related question. I have an SDI application and I want to show a modal dialog just when my main frame appears on screen. Which event of my CMainFrm should I register for that? I've tried ON_WM_CREATE and ON_WM_SHOWWINDOW but the first is called before any drawing has been done and the latter doesn't get invoked at all! Could you help me plz? Themis
-
Hi, I 'd like to ask an MFC related question. I have an SDI application and I want to show a modal dialog just when my main frame appears on screen. Which event of my CMainFrm should I register for that? I've tried ON_WM_CREATE and ON_WM_SHOWWINDOW but the first is called before any drawing has been done and the latter doesn't get invoked at all! Could you help me plz? Themis
-
Hi, I 'd like to ask an MFC related question. I have an SDI application and I want to show a modal dialog just when my main frame appears on screen. Which event of my CMainFrm should I register for that? I've tried ON_WM_CREATE and ON_WM_SHOWWINDOW but the first is called before any drawing has been done and the latter doesn't get invoked at all! Could you help me plz? Themis
-
-
Hi, I 'd like to ask an MFC related question. I have an SDI application and I want to show a modal dialog just when my main frame appears on screen. Which event of my CMainFrm should I register for that? I've tried ON_WM_CREATE and ON_WM_SHOWWINDOW but the first is called before any drawing has been done and the latter doesn't get invoked at all! Could you help me plz? Themis
Here's a thought: 1) Create a user defined message, that you can post to display the dialog. 2) In the main frames OnSetFocus(), just post the message (post not send). If there is already a command that allows the user to display the dialog then you can skip step 1 and just post that messge. INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen