Click here to Skip to main content
15,895,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmodeless dialog pointer Pin
sayup27-Jul-05 18:58
sayup27-Jul-05 18:58 
GeneralRe: modeless dialog pointer Pin
Christian Graus27-Jul-05 19:14
protectorChristian Graus27-Jul-05 19:14 
GeneralRe: modeless dialog pointer Pin
sayup27-Jul-05 20:53
sayup27-Jul-05 20:53 
GeneralRe: modeless dialog pointer Pin
Christian Graus28-Jul-05 15:10
protectorChristian Graus28-Jul-05 15:10 
GeneralRe: modeless dialog pointer Pin
sayup28-Jul-05 19:39
sayup28-Jul-05 19:39 
GeneralRe: modeless dialog pointer Pin
Christian Graus28-Jul-05 19:49
protectorChristian Graus28-Jul-05 19:49 
GeneralRe: modeless dialog pointer Pin
sayup28-Jul-05 21:51
sayup28-Jul-05 21:51 
GeneralRe: modeless dialog pointer Pin
Christian Graus31-Jul-05 13:13
protectorChristian Graus31-Jul-05 13:13 
sayup wrote:
can you please tell me what is m_d1?

m_ is the convention for naming member variables. It's the member variable which is a pointer to your dialog class, set to NULL in your constructor.


sayup wrote:
and then wrote code as you had given but it was giving some error of == sign;like i have intilaized in constructor and i am checking its value in (m_d1==NULL)in menu handler.

What was the error ? If m_d1 is a pointer, then I don't see what the error could be.

sayup wrote:
Also one more doubt if i wrote ShowWindow(SW_HIDE) in OnCancel() instead of DestroyWindow(),next time when i click on the menu the dialog be displayed,this is what your suggesting right?

Yes, with the code I gave you.

sayup wrote:
and after clicking red cross button if the modeless dialog completelty closes i dont have any problems with it.It should only open successfully next time i select the menu.

You need to handle this event so it also only calls ShowWindow

sayup wrote:
by the way can you just give me suggestion how to store the history in edit box.Like if user entes some values in edit box of dialog and then we close the box,the value should be seen next time i open the dialog....

Where do you store app settings now ? If this is one of these modeless dialogs, it will stay there by itself when you impliment my suggestion.




Christian Graus - Microsoft MVP - C++
GeneralRe: modeless dialog pointer Pin
ddmcr27-Jul-05 21:46
ddmcr27-Jul-05 21:46 
GeneralRe: modeless dialog pointer Pin
sayup28-Jul-05 19:40
sayup28-Jul-05 19:40 
Questionhow to debug exe service? Pin
HeartFriend27-Jul-05 17:03
HeartFriend27-Jul-05 17:03 
AnswerRe: how to debug exe service? Pin
Christian Graus27-Jul-05 17:05
protectorChristian Graus27-Jul-05 17:05 
Questionhow to design multiple inheritance classes? Pin
nm_11427-Jul-05 16:39
nm_11427-Jul-05 16:39 
AnswerRe: how to design multiple inheritance classes? Pin
Christian Graus27-Jul-05 16:49
protectorChristian Graus27-Jul-05 16:49 
GeneralRe: how to design multiple inheritance classes? Pin
nm_11427-Jul-05 18:02
nm_11427-Jul-05 18:02 
GeneralRe: how to design multiple inheritance classes? Pin
Christian Graus27-Jul-05 18:08
protectorChristian Graus27-Jul-05 18:08 
GeneralRe: how to design multiple inheritance classes? Pin
nm_11427-Jul-05 18:34
nm_11427-Jul-05 18:34 
GeneralRe: how to design multiple inheritance classes? Pin
Christian Graus27-Jul-05 19:06
protectorChristian Graus27-Jul-05 19:06 
GeneralRe: how to design multiple inheritance classes? Pin
nm_11427-Jul-05 19:56
nm_11427-Jul-05 19:56 
GeneralRe: how to design multiple inheritance classes? Pin
GDavy27-Jul-05 20:29
GDavy27-Jul-05 20:29 
GeneralRe: how to design multiple inheritance classes? Pin
nm_11428-Jul-05 18:02
nm_11428-Jul-05 18:02 
GeneralRe: how to design multiple inheritance classes? Pin
vikramlinux27-Jul-05 20:39
vikramlinux27-Jul-05 20:39 
GeneralRe: how to design multiple inheritance classes? Pin
Bob Stanneveld27-Jul-05 21:21
Bob Stanneveld27-Jul-05 21:21 
GeneralRe: how to design multiple inheritance classes? Pin
nm_11429-Jul-05 11:24
nm_11429-Jul-05 11:24 
GeneralRe: how to design multiple inheritance classes? Pin
Christian Graus31-Jul-05 13:23
protectorChristian Graus31-Jul-05 13:23 

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.