Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generala trouble problem about CMSCOMM.OCX Pin
Grrrr23-Mar-04 16:42
Grrrr23-Mar-04 16:42 
GeneralCapturing mouse clicks on a custom Win32 control Pin
IGx8923-Mar-04 15:35
IGx8923-Mar-04 15:35 
GeneralRe: Capturing mouse clicks on a custom Win32 control Pin
Ceri24-Mar-04 2:49
Ceri24-Mar-04 2:49 
GeneralRe: Capturing mouse clicks on a custom Win32 control Pin
IGx8924-Mar-04 3:01
IGx8924-Mar-04 3:01 
GeneralPostMessage question... Pin
rmnowick23-Mar-04 15:16
rmnowick23-Mar-04 15:16 
GeneralRe: PostMessage question... Pin
Antony M Kancidrowski24-Mar-04 0:32
Antony M Kancidrowski24-Mar-04 0:32 
GeneralRe: PostMessage question... Pin
rmnowick24-Mar-04 8:25
rmnowick24-Mar-04 8:25 
GeneralRe: PostMessage question... Pin
Roger Allen24-Mar-04 2:07
Roger Allen24-Mar-04 2:07 
If you have a hard coded lopp in your UI thread that stops it processing messages, you can add this code to the loop to allow other messages to be processed:

MSG     msg;
while (::PeekMessage(&msg, NULL, 0, 0, PM_NOYIELD | PM_REMOVE))
{
    ::TranslateMessage(&msg);
    ::DispatchMessage(&msg);
}

Be careful as the cancel/ok buttons and the original button that set you loop going etc will be able to be used by the user. You need to set the dialog up in such cases that all commands you don;t want to be run during this long process are disabled.


Roger Allen - Sonork 100.10016
Strong Sad:
Clever I am? Next to no one.
Undiscovered and soggy.
Look up. Look down. They're around.
Probably laughing. Still, bright, watery.
Listed among the top. Ten.
Nine. Late night. Early morn.
Early mourn. Now I sleep.

Generalservice status Pin
Irish_GUI23-Mar-04 14:23
Irish_GUI23-Mar-04 14:23 
GeneralRe: service status Pin
Maksim Lepikhin23-Mar-04 15:22
Maksim Lepikhin23-Mar-04 15:22 
GeneralRe: service status Pin
Arcrest23-Mar-04 17:00
Arcrest23-Mar-04 17:00 
GeneralHandle Leak : HKLM\SYSTEM\ControlSet001\Services\DnsCache\Parameters Pin
cmk23-Mar-04 13:03
cmk23-Mar-04 13:03 
GeneralA question about reading non-data CDs Pin
Roger Wright23-Mar-04 12:20
professionalRoger Wright23-Mar-04 12:20 
GeneralRe: A question about reading non-data CDs Pin
Shog923-Mar-04 19:56
sitebuilderShog923-Mar-04 19:56 
GeneralRe: A question about reading non-data CDs Pin
Roger Wright23-Mar-04 20:52
professionalRoger Wright23-Mar-04 20:52 
GeneralRe: A question about reading non-data CDs Pin
Ceri24-Mar-04 2:54
Ceri24-Mar-04 2:54 
GeneralRe: A question about reading non-data CDs Pin
Roger Wright24-Mar-04 4:39
professionalRoger Wright24-Mar-04 4:39 
GeneralGetting a window to come forward on XP Pin
Tom Wright23-Mar-04 12:01
Tom Wright23-Mar-04 12:01 
GeneralRe: Getting a window to come forward on XP Pin
Antony M Kancidrowski23-Mar-04 12:38
Antony M Kancidrowski23-Mar-04 12:38 
GeneralRe: Getting a window to come forward on XP Pin
Christian Graus23-Mar-04 16:18
protectorChristian Graus23-Mar-04 16:18 
GeneralRe: Getting a window to come forward on XP Pin
Mike Dimmick24-Mar-04 2:59
Mike Dimmick24-Mar-04 2:59 
GeneralRe: Getting a window to come forward on XP Pin
Tom Wright24-Mar-04 5:56
Tom Wright24-Mar-04 5:56 
GeneralCListCtrl - Sort Pin
jcplatt23-Mar-04 11:59
jcplatt23-Mar-04 11:59 
GeneralRe: CListCtrl - Sort Pin
David Crow24-Mar-04 2:08
David Crow24-Mar-04 2:08 
GeneralRe: CListCtrl - Sort Pin
jcplatt25-Mar-04 8:46
jcplatt25-Mar-04 8:46 

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.