remember tasedit window position
This commit is contained in:
parent
15e2c028e6
commit
717b8afb62
|
@ -55,6 +55,7 @@ extern int Monitor_wndx, Monitor_wndy;
|
|||
extern int Tracer_wndx, Tracer_wndy;
|
||||
extern int CDLogger_wndx, CDLogger_wndy;
|
||||
extern int GGConv_wndx, GGConv_wndy;
|
||||
extern int TasEdit_wndx, TasEdit_wndy;
|
||||
extern int EnableAutosave;
|
||||
|
||||
//Structure that contains configuration information
|
||||
|
@ -184,6 +185,8 @@ static CFGSTRUCT fceuconfig[] = {
|
|||
AC(CDLogger_wndy),
|
||||
AC(GGConv_wndx),
|
||||
AC(GGConv_wndy),
|
||||
AC(TasEdit_wndx),
|
||||
AC(TasEdit_wndy),
|
||||
|
||||
AC(pauseAfterPlayback),
|
||||
|
||||
|
|
|
@ -17,6 +17,8 @@ using namespace std;
|
|||
//to change header font
|
||||
//http://forums.devx.com/archive/index.php/t-37234.html
|
||||
|
||||
int TasEdit_wndx, TasEdit_wndy;
|
||||
|
||||
HWND hwndTasEdit = 0;
|
||||
|
||||
static HMENU hmenu, hrmenu;
|
||||
|
@ -544,10 +546,20 @@ BOOL CALLBACK WndprocTasEdit(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
|||
switch(uMsg)
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
SetWindowPos(hwndDlg,0,TasEdit_wndx,TasEdit_wndy,0,0,SWP_NOSIZE|SWP_NOZORDER|SWP_NOOWNERZORDER);
|
||||
|
||||
hwndList = GetDlgItem(hwndDlg,IDC_LIST1);
|
||||
InitDialog();
|
||||
break;
|
||||
|
||||
case WM_MOVE: {
|
||||
RECT wrect;
|
||||
GetWindowRect(hwndDlg,&wrect);
|
||||
TasEdit_wndx = wrect.left;
|
||||
TasEdit_wndy = wrect.top;
|
||||
break;
|
||||
}
|
||||
|
||||
case WM_NOTIFY:
|
||||
|
||||
switch(wParam)
|
||||
|
|
Loading…
Reference in New Issue