mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:53:06 +00:00
don't ask everytime the user wants to close the window
svn path=/trunk/; revision=28142
This commit is contained in:
parent
d68373d641
commit
38acb524ac
2 changed files with 1 additions and 8 deletions
|
@ -30,7 +30,6 @@ CardRegion::CardRegion(CardWindow &parent, int Id, bool visible, int x, int y, i
|
||||||
fVisible = visible;
|
fVisible = visible;
|
||||||
|
|
||||||
nThreedCount = 1;
|
nThreedCount = 1;
|
||||||
nBackCardIdx = 53;
|
|
||||||
|
|
||||||
Update(); //Update this stack's size+card count
|
Update(); //Update this stack's size+card count
|
||||||
|
|
||||||
|
|
|
@ -493,13 +493,7 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
ret = MessageBox(hwnd, MsgQuit, szAppName, MB_OKCANCEL|MB_ICONQUESTION);
|
DestroyWindow(hwnd);
|
||||||
if(ret == IDOK)
|
|
||||||
{
|
|
||||||
WinHelp(hwnd, szHelpPath, HELP_QUIT, 0);
|
|
||||||
DestroyWindow(hwnd);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue