mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
fix for Bugzilla entry 900 by mrnobo1024 at yahoo.com: don't destroy menus when switching between normal and scientific mode
svn path=/trunk/; revision=18518
This commit is contained in:
parent
5afb16c749
commit
48d2f86ba2
2 changed files with 8 additions and 3 deletions
|
@ -269,6 +269,7 @@ LRESULT WINAPI MainProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
|
|
||||||
DestroyCalc( &calc );
|
DestroyCalc( &calc );
|
||||||
|
DestroyMenus();
|
||||||
PostQuitMessage( 0 );
|
PostQuitMessage( 0 );
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -2839,6 +2840,12 @@ void DestroyCalc (CALC *calc)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
for (i=0;i<calc->numButtons;i++)
|
||||||
|
DestroyWindow(calc->cb[i].hBtn);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DestroyMenus()
|
||||||
|
{
|
||||||
if (menus[MENU_STD] != 0)
|
if (menus[MENU_STD] != 0)
|
||||||
DestroyMenu(menus[MENU_STD]);
|
DestroyMenu(menus[MENU_STD]);
|
||||||
|
|
||||||
|
@ -2847,9 +2854,6 @@ void DestroyCalc (CALC *calc)
|
||||||
|
|
||||||
if (menus[MENU_SCIWS] != 0)
|
if (menus[MENU_SCIWS] != 0)
|
||||||
DestroyMenu(menus[MENU_SCIWS]);
|
DestroyMenu(menus[MENU_SCIWS]);
|
||||||
|
|
||||||
for (i=0;i<calc->numButtons;i++)
|
|
||||||
DestroyWindow(calc->cb[i].hBtn);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void calc_buffer_format(CALC *calc) {
|
void calc_buffer_format(CALC *calc) {
|
||||||
|
|
|
@ -338,6 +338,7 @@ LRESULT WINAPI MainProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
|
||||||
|
|
||||||
void InitLuts(void);
|
void InitLuts(void);
|
||||||
void InitMenus(HINSTANCE hInst);
|
void InitMenus(HINSTANCE hInst);
|
||||||
|
void DestroyMenus();
|
||||||
|
|
||||||
void InitCalc (CALC *calc);
|
void InitCalc (CALC *calc);
|
||||||
void DestroyCalc (CALC *calc);
|
void DestroyCalc (CALC *calc);
|
||||||
|
|
Loading…
Reference in a new issue