Questions tagged [getmessage]
48 questions
12
votes
4 answers
Why would GetMessageW take up massive CPU usage in my WPF application?
I've got a serious head-scratcher on my hands here. I'm investigating performance issues with a WPF component in our application.
Our .net application is very large, and almost entirely in windows forms. As part of a new initiative we rewrote one…

David Hay
- 3,027
- 2
- 27
- 29
9
votes
3 answers
Why peekmessage before getmessage?
Why the peekMessage statement is required before Getmessage() for creating message queue?

Josh
- 93
- 1
- 3
6
votes
5 answers
Prevent C preprocessor to do a specific macro subsitution
How can I tell the preprocessor not to replace a specific macro?
The specific problem is the following: Windows header files define the GetMessage macro.
My C++ header files with my API have a GetMessage method. I do not want to rename my method.…

Vincent Oberle
- 91
- 2
- 5
4
votes
1 answer
Combine GetMessage and PeekMessage
I intend to create a small application with 2 windows, a normal window with controls and a 3D window, rendered with DirectX. For 3D window PeekMessage() is recommended because it doesn't wait after checking the messages but for normal windows (no 3D…

ali
- 10,927
- 20
- 89
- 138
3
votes
2 answers
Get plain text from SunAwtCanvas
Since it's impossible to capture text from a java canvas by using standard Windows API functions like GetMessage(), I wondered if there is any way to hook the drawText() method inside such a java canvas and to capture the text before it's actually…

arminb
- 2,036
- 3
- 24
- 43
3
votes
1 answer
How to get specific message and only delete that from the queue
I have a requirement to get just a specific message from a queue based on its correlation ID.
Is there a way where we can get a message for the corresponding correlation ID and remove only that message from the queue without deleting the others.
The…

Johnny Bravo
- 41
- 4
3
votes
2 answers
WinApi message loop, Postmessage works like SendMessage
Hello can Somebody answer me why when I run this program the order of MessageBoxes is 1,2,4,3 instead of 1,2,3,4. In my opinion program should end executing WM_PAINT procedure before start WM_USER+11, why it isn't?
// Win32Project6.cpp : Defines the…

user3306559
- 33
- 5
2
votes
1 answer
Win32 API GetMessage()
I want to change the default behaviour of a combobox (c++, win32 api). I make the combobox drop down when something is entered in its edit control I want to avoid the default behaviour that the combobox searches for the first match in the list,…

Michbeckable
- 1,851
- 1
- 28
- 41
2
votes
3 answers
How to resolve a message with named parameters from Spring's MessageSource
I have resource bundle with one of the key/value pairs looking like:
my.key=A message specifying min: {min} and max: {max} parameters
It all works well when used with @Length annotation, Thymeleaf and validators. If error conditions are met the…

hicnar
- 163
- 3
- 9
2
votes
1 answer
quickblox php get unread messages list
I am trying to get only unread messages list (not count) from a dialog. There is no such request in the documentation of QuickBlox. This is my function but it returns nothing:
function getUnreadMessages($login, $password, $dialogId, $userId) {
…

baturalpdincdari
- 362
- 1
- 3
- 15
2
votes
1 answer
wparam value in GetMessage not what I expected (Delphi XE4)
I have a Delphi XE4 service application under development. The service starts threads for some long-running tasks, and the threads communicate status back with a PostThreadMessage call.
The main ServiceExecute loop looks like this:
procedure…

Kevin Davidson
- 131
- 8
2
votes
0 answers
C Program Hangs inside GetMessage
Our program hangs in the customer's machine (mostly in Windows 7).
The program is a client that connects to our server in a different machine. It is a C program with Win32 programming graphical interface.
Symptom:
While executing our client…

Clueless Programmer
- 89
- 9
2
votes
2 answers
GetMessage(WM_CHAR) override? Making sure all other Window Hooks activate
I'm looking for a way to intercept a GetMessage() call for WM_CHAR in an external process (only the active window, to be specific). I'm hesitant to use SetWindowsHookEx() - I want to make absolutely sure that the widest possible range of programs…

Illya Moskvin
- 294
- 1
- 4
- 15
1
vote
3 answers
Thread does not receive messages
There is a thread in my Delphi application that has a message-waiting loop. Every time it receives a message, it starts doing some work. Here is the execute procedure of that thread:
procedure TMyThread.Execute;
begin
while GetMessage(Msg, 0, 0,…

Mariusz Schimke
- 3,185
- 8
- 45
- 63
1
vote
1 answer
c++ Win32 Api GetMessage closing program inside thread
I'm building a interface using the win32 api and I wanted to manage all the suff in another class with a thread to keep doing work in the main.
I have this code:
WindowManager.h
class UIManager::WindowManager {
private:
//Class data
…

OnelioD
- 7
- 6