mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 15:14:59 -06:00
23.01
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
|
||||
#include "EditDialog.h"
|
||||
|
||||
#ifdef LANG
|
||||
#ifdef Z7_LANG
|
||||
#include "LangUtils.h"
|
||||
#endif
|
||||
|
||||
bool CEditDialog::OnInit()
|
||||
{
|
||||
#ifdef LANG
|
||||
#ifdef Z7_LANG
|
||||
LangSetDlgItems(*this, NULL, 0);
|
||||
#endif
|
||||
_edit.Attach(GetItem(IDE_EDIT));
|
||||
@@ -22,21 +22,21 @@ bool CEditDialog::OnInit()
|
||||
return CModalDialog::OnInit();
|
||||
}
|
||||
|
||||
// #define MY_CLOSE_BUTTON__ID IDCANCEL
|
||||
#define MY_CLOSE_BUTTON__ID IDCLOSE
|
||||
// #define MY_CLOSE_BUTTON_ID IDCANCEL
|
||||
#define MY_CLOSE_BUTTON_ID IDCLOSE
|
||||
|
||||
bool CEditDialog::OnSize(WPARAM /* wParam */, int xSize, int ySize)
|
||||
{
|
||||
int mx, my;
|
||||
GetMargins(8, mx, my);
|
||||
int bx1, by;
|
||||
GetItemSizes(MY_CLOSE_BUTTON__ID, bx1, by);
|
||||
GetItemSizes(MY_CLOSE_BUTTON_ID, bx1, by);
|
||||
|
||||
// int bx2;
|
||||
// GetItemSizes(IDOK, bx2, by);
|
||||
|
||||
int y = ySize - my - by;
|
||||
int x = xSize - mx - bx1;
|
||||
const int y = ySize - my - by;
|
||||
const int x = xSize - mx - bx1;
|
||||
|
||||
/*
|
||||
RECT rect;
|
||||
@@ -46,7 +46,7 @@ bool CEditDialog::OnSize(WPARAM /* wParam */, int xSize, int ySize)
|
||||
*/
|
||||
InvalidateRect(NULL);
|
||||
|
||||
MoveItem(MY_CLOSE_BUTTON__ID, x, y, bx1, by);
|
||||
MoveItem(MY_CLOSE_BUTTON_ID, x, y, bx1, by);
|
||||
// MoveItem(IDOK, x - mx - bx2, y, bx2, by);
|
||||
/*
|
||||
if (wParam == SIZE_MAXSHOW || wParam == SIZE_MAXIMIZED || wParam == SIZE_MAXHIDE)
|
||||
|
||||
Reference in New Issue
Block a user