Questions tagged [wndproc]

WndProc is a .NET method that process Windows messages. It is the .NET equivalent of the C++ WindowProc method.

Official documentation including example.

For more information on how Windows messages are processed, can consult WindowProc.

348 questions
-2
votes
2 answers

C++ - CloseWindow with specifc exit code

Is there a way to close a window returning a specific code? I know PostQuitMessage() allows you to post the application's exit code, but everytime I call PostQuitMessage() in my thread the window hangs. I need to be able to exit my GUI with a…
Trevin Corkery
  • 651
  • 7
  • 19
-3
votes
1 answer

How to make WndProc inline?

Is it possible, and if so, how to make WndProc inline? That is, I would like to process Windows messages WM_... within WinMain, so as to avoid seemingly needless function calls. Thank you.
-3
votes
1 answer

Using wndproc as a member function of a class

I've been following this thread for how to use the wndproc function as a member function but I keep getting read access violations (it won't tell me the exact line in my program though, but it's at line 120 of xmemory0 const uintptr_t _Ptr_container…
Colebacha2
  • 27
  • 1
  • 6
1 2 3
23
24