Witch windows message allways trigger's?
Hello i want to display image over and over agian witch one of WM_ to use?
My Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#include <windows.h>
//...
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch(msg)
{
case WM_CLOSE:
DestroyWindow(hwnd);
break;
case WM_DESTROY:
PostQuitMessage(0);
break;
case WM_ALWAYSTRIGGER: //I want this.
DrawImage("test.bmp",100,100);
break;
default:
return DefWindowProc(hwnd, msg, wParam, lParam);
}
return 0;
}
//...
|
Thank you for your help.
Last edited on
You can use SetTimer and WM_TIMER
Topic archived. No new replies allowed.