peekmessage

How to override wxApp::MainLoop properly (wxWidgets)?

I'm writing a cross-platform application. Is there a way in wxWidgets to define my own event loop? How to do that? I want it look like an ordinary windows PeekMessage DispachMessage loop: for(;;) { while(PeekMessage(...)) // dispatching all pending messages { // traslating, dispatching messages // also do something wit...

Is there a function like PeekMessage that doesn't process messages?

I'm trying to innocently call PeekMessage(&msg, 0, WM_KEYDOWN, WM_KEYUP, PM_NOREMOVE | PM_NOYIELD); and Windows Vista 64, in the PeekMessage call, is processing messages. The result is that I'm going re-entrant on my paint call, and all sorts of other code. Painting can take seconds in our application, so we added the PeekMessage ca...

postthreadmessage and peekmessage problem in delphi 2006

I created a multichilded application. The application windows (W[n]: TMyWindows) are all the same and all have an private object class instance associated with them (E: TMyObject). The child windows generate through this objects some messages. I have created in the main application two threads which process these messages depending on th...

PeekMessage() Resetting the Mouse Cursor [Solved]

Im currently messing around with changing the mouse cursor within a game like C++ application for Windows XP. To change the cursor I am using SetCursor() and passing in the desired cursor, which is working. However during the while loop in which PeekMessage() is called the cursor keep getting reset back to the default arrow. This is t...

Compiler can't find structures, what should i be including.

UPDATE: I thought it was Windsows.h i need to include and you have confirmed this, but when i do include it i get a bunch of messages like the following... 1>C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\objidl.h(5934) : error C2872: 'IDataObject' : ambiguous symbol 1> could be 'C:\Program Files\Microsoft SDKs\Windows\v6....

Why peekmessage before getmessage?

Why the peekMessage statement is required before Getmessage() for creating message queue? ...