Click here to Skip to main content
15,896,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have changed my window style using the following function

C++
SetWindowLong(g_hDialogWindow, GWL_STYLE,GetWindowLong(g_hDialogWindow, GWL_STYLE) & (~(WS_CAPTION | WS_BORDER)));


Setting position of main dialog
C++
SetWindowPos(g_hDialogWindow,HWND_TOP,0,0,GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN), SWP_SHOWWINDOW);


Now suppose I minimize my application using the (window+m) key then again maximize my application. After that I want to add some repaint function.

Which message should i handle? I have tried using wm_paint but its not working properly.

--Thanks for the help.
Posted
Updated 1-Feb-12 0:11am
v3
Comments
Slacker007 1-Feb-12 6:11am    
Edits made: Title, formatting, some grammar.

Try to handle the WM_SIZE message.
 
Share this answer
 
Comments
pranav_30 1-Feb-12 7:48am    
well i had tried WM_WINDOWPOSCHANGED & WM_SIZE
i am using virtual HRESULT STDMETHODCALLTYPE RepaintVideo( ) of vmr9.h for repainting .
when i maximized application frame appears for shot duration & again it goes disappears..
You should handle WM_QUERYOPEN message.
Read here carefully:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms632599(v=vs.85).aspx#min_max[^]

Hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900