Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFile Pin
vcplusplus27-Oct-04 3:10
vcplusplus27-Oct-04 3:10 
Generalimplicit pointer conversion Pin
pesho293226-Oct-04 21:55
pesho293226-Oct-04 21:55 
GeneralRe: implicit pointer conversion Pin
geo_m26-Oct-04 23:14
geo_m26-Oct-04 23:14 
GeneralRe: implicit pointer conversion Pin
pesho293227-Oct-04 0:13
pesho293227-Oct-04 0:13 
GeneralEnableWindow in vc++ Pin
vc-programmer-26-Oct-04 21:24
vc-programmer-26-Oct-04 21:24 
GeneralRe: EnableWindow in vc++ Pin
Cedric Moonen26-Oct-04 21:31
Cedric Moonen26-Oct-04 21:31 
GeneralRe: EnableWindow in vc++ Pin
vc-programmer-26-Oct-04 21:50
vc-programmer-26-Oct-04 21:50 
GeneralRe: EnableWindow in vc++ Pin
Cedric Moonen26-Oct-04 22:03
Cedric Moonen26-Oct-04 22:03 
Yes, OnInitDialog is just called once when you call DoModal. But, when you create your dialog again, it is of course called again. If you want to enable or disable your control but without knowing it before, I suggest you to add a member variable to your class dialog (say bEnable for example) and add a member function:

void CYourDialog SetEnabled(BOOL bEn) { bEnabled = bEn; }. So you call this member function before calling DoModal (and after creating your dialog) and then, in OnInitDialog, add this:
...->EnableWindow(bEnabled);
GeneralRe: EnableWindow in vc++ Pin
vc-programmer-26-Oct-04 22:15
vc-programmer-26-Oct-04 22:15 
GeneralFind changed Control on Dialog. Pin
Sumit Kapoor26-Oct-04 20:59
Sumit Kapoor26-Oct-04 20:59 
GeneralRe: Find changed Control on Dialog. Pin
Cedric Moonen26-Oct-04 21:10
Cedric Moonen26-Oct-04 21:10 
GeneralRe: Find changed Control on Dialog. Pin
Sumit Kapoor26-Oct-04 21:22
Sumit Kapoor26-Oct-04 21:22 
GeneralApplication dissappearing Pin
FASTian26-Oct-04 20:43
FASTian26-Oct-04 20:43 
GeneralRe: Application dissappearing Pin
dharani26-Oct-04 21:10
dharani26-Oct-04 21:10 
GeneralQuestion regarding "typeof" equivalent in VC++ .NET Pin
NietzscheDisciple26-Oct-04 19:10
NietzscheDisciple26-Oct-04 19:10 
GeneralChange Font Pin
uttit26-Oct-04 18:56
uttit26-Oct-04 18:56 
GeneralRe: Change Font Pin
sarath_babu27-Oct-04 0:50
sarath_babu27-Oct-04 0:50 
GeneralRe: Change Font Pin
uttit27-Oct-04 16:19
uttit27-Oct-04 16:19 
GeneralRe: Change Font Pin
sarath_babu28-Oct-04 3:41
sarath_babu28-Oct-04 3:41 
GeneralRe: Change Font Pin
uttit28-Oct-04 15:49
uttit28-Oct-04 15:49 
GeneralRe: Change Font Pin
sarath_babu28-Oct-04 18:02
sarath_babu28-Oct-04 18:02 
GeneralLittle Help Needed Pin
ThatsAlok26-Oct-04 18:41
ThatsAlok26-Oct-04 18:41 
GeneralRe: Little Help Needed Pin
Antony M Kancidrowski27-Oct-04 2:10
Antony M Kancidrowski27-Oct-04 2:10 
GeneralRe: Little Help Needed Pin
krmed27-Oct-04 2:36
krmed27-Oct-04 2:36 
GeneralRe: Little Help Needed Pin
Antony M Kancidrowski27-Oct-04 8:53
Antony M Kancidrowski27-Oct-04 8: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.