本文介绍了C ++:如何处理最小化和最大化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用以下功能更改了窗口样式

I have changed my window style using the following function

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



主对话框的设置位置



Setting position of main dialog

SetWindowPos(g_hDialogWindow,HWND_TOP,0,0,GetSystemMetrics(SM_CXSCREEN),GetSystemMetrics(SM_CYSCREEN), SWP_SHOWWINDOW);



现在,假设我使用(window + m)键最小化我的应用程序,然后再次最大化我的应用程序.之后,我想添加一些重绘功能.

我应该处理哪一条消息?我尝试使用wm_paint,但无法正常工作.

-感谢您的帮助.



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.

推荐答案



这篇关于C ++:如何处理最小化和最大化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 15:45
查看更多