Click here to Skip to main content
15,887,436 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralModeless Dialog Box Pin
mmica9-Mar-04 0:19
mmica9-Mar-04 0:19 
GeneralRe: Modeless Dialog Box Pin
Prakash Nadar9-Mar-04 1:08
Prakash Nadar9-Mar-04 1:08 
GeneralRe: Modeless Dialog Box Pin
mmica9-Mar-04 1:44
mmica9-Mar-04 1:44 
GeneralRe: Modeless Dialog Box Pin
Prakash Nadar9-Mar-04 2:28
Prakash Nadar9-Mar-04 2:28 
GeneralRe: Modeless Dialog Box Pin
David Crow9-Mar-04 2:42
David Crow9-Mar-04 2:42 
GeneralRe: Modeless Dialog Box Pin
Prakash Nadar9-Mar-04 2:49
Prakash Nadar9-Mar-04 2:49 
GeneralRe: Modeless Dialog Box Pin
David Crow9-Mar-04 2:43
David Crow9-Mar-04 2:43 
GeneralRe: Modeless Dialog Box Pin
bilal789-Mar-04 1:51
bilal789-Mar-04 1:51 
well your problem might be as it seems from the description :
You are creating the dialog variable in the OnButtonXXX() function, and when you create the modeless dialog, means CreateDialog returns at that very moment, and so does your funtion ( after calling ::ShowWindow(...)). And when your function ends, scope of your dialog ends (this is the reason for flashing, it creates, then ShowWindow() gets called and then scope ends. Frown | :( ), Try to make the variable outside the function (class variable or global), and try the same code, hopefully it will work.

Regards,
Bilal Anjum
GeneralRe: Modeless Dialog Box Pin
mmica9-Mar-04 2:35
mmica9-Mar-04 2:35 
GeneralShellExecute - cannot use unc path Pin
Sara Burns8-Mar-04 23:36
Sara Burns8-Mar-04 23:36 
GeneralRe: ShellExecute - cannot use unc path Pin
David Crow9-Mar-04 2:25
David Crow9-Mar-04 2:25 
GeneralRe: ShellExecute - cannot use unc path Pin
Prakash Nadar9-Mar-04 2:31
Prakash Nadar9-Mar-04 2:31 
GeneralRe: ShellExecute - cannot use unc path Pin
Sara Burns10-Mar-04 0:02
Sara Burns10-Mar-04 0:02 
GeneralHelp need: I need a list control like in the left pane of the FileOpen dialog Pin
porfessorDavid8-Mar-04 22:59
porfessorDavid8-Mar-04 22:59 
GeneralRe: Help need: I need a list control like in the left pane of the FileOpen dialog Pin
David Crow9-Mar-04 2:28
David Crow9-Mar-04 2:28 
GeneralCRichEditView help needed Pin
MolleX8-Mar-04 22:42
MolleX8-Mar-04 22:42 
Generalcustomizing internet explorer Pin
yourbuddy778-Mar-04 22:06
yourbuddy778-Mar-04 22:06 
GeneralFile Monitoring Pin
vikramlinux8-Mar-04 21:51
vikramlinux8-Mar-04 21:51 
GeneralRe: File Monitoring Pin
Dudi Avramov9-Mar-04 2:24
Dudi Avramov9-Mar-04 2:24 
GeneralBook about automation Pin
Member 7389388-Mar-04 20:46
Member 7389388-Mar-04 20:46 
GeneralRe: Book about automation Pin
Michael P Butler8-Mar-04 22:55
Michael P Butler8-Mar-04 22:55 
GeneralRe: Book about automation Pin
Member 7389388-Mar-04 23:08
Member 7389388-Mar-04 23:08 
GeneralRe: Book about automation Pin
Michael P Butler8-Mar-04 23:41
Michael P Butler8-Mar-04 23:41 
GeneralRe: Book about automation Pin
Member 7389389-Mar-04 0:41
Member 7389389-Mar-04 0:41 
Generalsending ARP packet Pin
Imtiaz Murtaza8-Mar-04 20:37
Imtiaz Murtaza8-Mar-04 20:37 

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.