Win32 |
Author |
Message |
Jean Jacques
Joined: 01 Jul 2006 Posts: 12
|
Posted: Thu Aug 31, 2006 5:14 pm Post subject: Dialogs |
|
|
Raymond: The dialog class goes under the sneaky name WC_DIALOG
"An anonymous commenter wanted to know how to create a dialog box
with CreateWindow. The window class for dialog boxes is WC_DIALOG. I'm
not quite sure why anybody would want to create a dialog box this way, but
there you have it." |
|
Back to top |
|
|
Ho Ho Guest
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat Sep 23, 2006 3:22 pm Post subject: |
|
|
How do I wait until my dialog box is displayed before doing something?
"The customer discovered that displaying the nested dialog box in
response to the WM_INITDIALOG message was premature, because as we
all know, the WM_INITDIALOG is sent before the dialog box is displayed.
The question therefore is, 'How do I want until my dialog box is displayed
before doing something?' " |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon Sep 25, 2006 5:10 pm Post subject: |
|
|
Answer to yesterday's post: Waiting until the dialog box is displayed before doing something
"Many window messages are notifications which are delivered while the
operation is still in progress. You do not want to display new UI while
handling those notifications because that holds up the completion of the
original UI operation that generated the notification in the first place. Posting
a message to yourself to complete the user interaction after the original
operation has stabilized is the standard solution." |
|
Back to top |
|
|
Harrod Guest
|
Posted: Tue Oct 03, 2006 7:12 pm Post subject: |
|
|
Links to Raymond Chen's Dialog Manager Series, published March and April 2005:
The dialog manager, part 1 - 9
He, He! |
|
Back to top |
|
|
Mambo 5 Guest
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri Oct 20, 2006 8:34 pm Post subject: |
|
|
Bizarre: Problem with GetOpenFileName() on Win XP SP2
"The second time time the dialog is executed the application will unexpectedly
close when the "hint" window pops up after hovering the mouse over a file. " |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Nov 02, 2006 6:03 pm Post subject: |
|
|
Raymond Chen: Make sure you disable the correct window for modal UI
"Both of the problems boiled down to somebody passing a child window
as the hwndParent and the code doing manual modal UI failing to convert
this window to a top-level window. As a result, when they did the
EnableWindow(hwndParent, FALSE), they disabled a child window, leaving
the top-level window enabled." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Wed Jan 31, 2007 5:53 pm Post subject: |
|
|
CodeGuru: SW_HIDE
"I have SW_HIDE to hide the dialog window when it is launched. But the
thing is it always flashes for a second before it hides. How to get ride of
the flashing everything it open in hidden mode?" |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Thu Feb 15, 2007 5:32 pm Post subject: |
|
|
CodeGuru: Task Dialogs in Vista
"How many times have you come across a situation where you have a
message box pop up with some text in it and three buttons: Yes, No, and
Cancel. Have you ever been stumped by the options, trying to figure out
what the difference was with selecting No versus selecting Cancel? Well, I
have had to scratch my head on numerous occasions where a MessageBox
simply wasn't conveying the right message. Finally, Windows Vista seems
to have an answer to this." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
|