资源介绍
有点像微软的源码,我也不清楚!反正不错了.
INT_PTR CALLBACK MainWindowProc(
HWND hwnd, // handle to dialog box
UINT uMsg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
)
{
static BOOL fIsHidden = FALSE;
// If this is a size or a move, update the position in the user's options
if (uMsg == WM_SIZE || uMsg == WM_MOVE)
{
// We don't want to start recording the window pos until we've had
// a chance to set it to the intialial position, or we'll lose the
// user's preferences
if (fAlreadySetPos)
if (!IsIconic(hwnd) && !IsZoomed(hwnd))
GetWindowRect(hwnd, &g_Options.m_rcWindow);
}
INT_PTR CALLBACK MainWindowProc(
HWND hwnd, // handle to dialog box
UINT uMsg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
)
{
static BOOL fIsHidden = FALSE;
// If this is a size or a move, update the position in the user's options
if (uMsg == WM_SIZE || uMsg == WM_MOVE)
{
// We don't want to start recording the window pos until we've had
// a chance to set it to the intialial position, or we'll lose the
// user's preferences
if (fAlreadySetPos)
if (!IsIconic(hwnd) && !IsZoomed(hwnd))
GetWindowRect(hwnd, &g_Options.m_rcWindow);
}
- 上一篇: C语言任务管理器代码
- 下一篇: WINDOWS进程管理工具的原理和实现