Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please see why it happened Pin
Cedric Moonen8-Jul-03 21:01
Cedric Moonen8-Jul-03 21:01 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 20:38
Ryan Binns8-Jul-03 20:38 
GeneralRe: Please see why it happened Pin
Toni788-Jul-03 20:47
Toni788-Jul-03 20:47 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 20:51
Ryan Binns8-Jul-03 20:51 
GeneralRe: Please see why it happened Pin
Toni788-Jul-03 21:03
Toni788-Jul-03 21:03 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 21:07
Ryan Binns8-Jul-03 21:07 
GeneralRe: Please see why it happened Pin
Toni788-Jul-03 21:16
Toni788-Jul-03 21:16 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 21:21
Ryan Binns8-Jul-03 21:21 
Toni78 wrote:
Wouldn't the main window handle (or any other window that is supposed to receive the enter key) handle that message? MessageBox should have it's own dialog procedure, right?

Yes you're right, but there is a short period of time in between a window being created and it being displayed. Only a few milliseconds, but enough to warrant emptying the queue first. If the enter key is pressed right in this time (or the key posted to the queue), then the dialog box would disappear before it was shown. Remember that WM_PAINT is the lowest-priority message in the system. All other messages are processed before it.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: Please see why it happened Pin
Toni788-Jul-03 21:40
Toni788-Jul-03 21:40 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 21:46
Ryan Binns8-Jul-03 21:46 
GeneralRe: Please see why it happened Pin
Iain Clarke, Warrior Programmer8-Jul-03 22:58
Iain Clarke, Warrior Programmer8-Jul-03 22:58 
GeneralRe: Please see why it happened Pin
Ryan Binns8-Jul-03 23:04
Ryan Binns8-Jul-03 23:04 
GeneralRe: Please see why it happened Pin
Iain Clarke, Warrior Programmer9-Jul-03 1:02
Iain Clarke, Warrior Programmer9-Jul-03 1:02 
GeneralRe: Please see why it happened Pin
Ryan Binns9-Jul-03 1:26
Ryan Binns9-Jul-03 1:26 
GeneralRe: Please see why it happened Pin
Anonymous9-Jul-03 0:14
Anonymous9-Jul-03 0:14 
GeneralRe: Please see why it happened Pin
Iain Clarke, Warrior Programmer9-Jul-03 0:56
Iain Clarke, Warrior Programmer9-Jul-03 0:56 
GeneralRe: Please see why it happened Pin
Toni789-Jul-03 13:44
Toni789-Jul-03 13:44 
GeneralCrystal report Pin
modular8-Jul-03 19:35
modular8-Jul-03 19:35 
GeneralDisplaying the line of the source code in case of an error Pin
Jerome Conus8-Jul-03 19:18
Jerome Conus8-Jul-03 19:18 
GeneralRe: Displaying the line of the source code in case of an error Pin
Ryan Binns8-Jul-03 19:22
Ryan Binns8-Jul-03 19:22 
GeneralAbout MessageBoxEX Pin
FlyingDancer8-Jul-03 19:17
FlyingDancer8-Jul-03 19:17 
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 19:21
Ryan Binns8-Jul-03 19:21 
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 19:24
Ryan Binns8-Jul-03 19:24 
GeneralRe: About MessageBoxEX Pin
FlyingDancer8-Jul-03 19:35
FlyingDancer8-Jul-03 19:35 
GeneralRe: About MessageBoxEX Pin
Ryan Binns8-Jul-03 19:42
Ryan Binns8-Jul-03 19:42 

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.