Click here to Skip to main content
15,914,071 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: printf in C Pin
Andrzej Markowski13-Oct-04 22:33
Andrzej Markowski13-Oct-04 22:33 
QuestionMovie player's seeking bar - how should I design one? Pin
Indrawati13-Oct-04 15:01
Indrawati13-Oct-04 15:01 
AnswerRe: Movie player's seeking bar - how should I design one? Pin
Tyrus18213-Oct-04 15:51
Tyrus18213-Oct-04 15:51 
AnswerRe: Movie player's seeking bar - how should I design one? Pin
Ryan Binns13-Oct-04 18:23
Ryan Binns13-Oct-04 18:23 
GeneralThreads w/ Message loop(UI threads) in Win32 without MFC HELP!!!! Pin
O. Rodriguez13-Oct-04 14:54
sussO. Rodriguez13-Oct-04 14:54 
GeneralRe: Threads w/ Message loop(UI threads) in Win32 without MFC HELP!!!! Pin
Sujan Christo13-Oct-04 20:34
Sujan Christo13-Oct-04 20:34 
GeneralRe: Threads w/ Message loop(UI threads) in Win32 without MFC HELP!!!! Pin
O Rodriguez14-Oct-04 3:55
sussO Rodriguez14-Oct-04 3:55 
GeneralRe: Threads w/ Message loop(UI threads) in Win32 without MFC HELP!!!! Pin
Blake Miller14-Oct-04 4:36
Blake Miller14-Oct-04 4:36 
You need to use MsgWaitForMultipleObjects and when you get messages, they are processed by your message loop. If you only use WaitForMultipleObjects, then when WM_PAINT and other messages show up for your second window, they are not processed until your thread is unblocked by some other event it was waiting upon. You can look at the MFC code to see how they do this with their main message pumping loops, and you could mimic something like that.
Otherwise, when you get WAIT_OBJECT_0 + nCount you need to process messages with GetMessage, TranslateMessage and DispatchMessage.
This way, your thread either waits on one of its events, or unblocks when messages are available for the window to process.

GeneralRe: Threads w/ Message loop(UI threads) in Win32 without MFC HELP!!!! Pin
O. Rodriguez14-Oct-04 5:29
sussO. Rodriguez14-Oct-04 5:29 
GeneralRe: Threads w/ Message loop(UI threads) in Win32 without MFC HELP!!!! Pin
Blake Miller14-Oct-04 6:32
Blake Miller14-Oct-04 6:32 
GeneralRe: Threads w/ Message loop(UI threads) in Win32 without MFC HELP!!!! Pin
O. Rodriguez14-Oct-04 6:51
sussO. Rodriguez14-Oct-04 6:51 
GeneralRe: Threads w/ Message loop(UI threads) in Win32 without MFC HELP!!!! Pin
Blake Miller14-Oct-04 7:14
Blake Miller14-Oct-04 7:14 
GeneralRe: Threads w/ Message loop(UI threads) in Win32 without MFC HELP!!!! Pin
O. Rodriguez14-Oct-04 8:54
sussO. Rodriguez14-Oct-04 8:54 
GeneralRe: Threads w/ Message loop(UI threads) in Win32 without MFC HELP!!!! Pin
Blake Miller15-Oct-04 4:15
Blake Miller15-Oct-04 4:15 
GeneralHooking GetCursorPos() Pin
Falcon21313-Oct-04 12:33
Falcon21313-Oct-04 12:33 
GeneralRe: Hooking GetCursorPos() Pin
SuperTank13-Oct-04 12:42
SuperTank13-Oct-04 12:42 
GeneralRe: Hooking GetCursorPos() Pin
Falcon21313-Oct-04 12:51
Falcon21313-Oct-04 12:51 
GeneralRe: Hooking GetCursorPos() Pin
Falcon21313-Oct-04 17:52
Falcon21313-Oct-04 17:52 
GeneralI can´t move my dialogbox Pin
SuperTank13-Oct-04 12:01
SuperTank13-Oct-04 12:01 
GeneralRe: I can´t move my dialogbox Pin
Ryan Binns13-Oct-04 18:31
Ryan Binns13-Oct-04 18:31 
GeneralRe: I can´t move my dialogbox Pin
Michael Dunn13-Oct-04 20:14
sitebuilderMichael Dunn13-Oct-04 20:14 
QuestionHow to make Rounded or irregular shape Dialog in Windows CE? Pin
mutpan13-Oct-04 11:54
mutpan13-Oct-04 11:54 
AnswerRe: How to make Rounded or irregular shape Dialog in Windows CE? Pin
GDavy13-Oct-04 19:48
GDavy13-Oct-04 19:48 
GeneralRe: How to make Rounded or irregular shape Dialog in Windows CE? Pin
mutpan14-Oct-04 1:01
mutpan14-Oct-04 1:01 
Generalwhy it dont work Pin
ANDYFA13-Oct-04 10:34
ANDYFA13-Oct-04 10:34 

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.