mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 00:11:34 -06:00
4.25 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
47f4915611
commit
af1fe52701
@@ -9,22 +9,22 @@ extern HINSTANCE g_hInstance;
|
||||
namespace NWindows {
|
||||
namespace NControl {
|
||||
|
||||
BOOL APIENTRY DialogProcedure(HWND dialogHWND, UINT message,
|
||||
static INT_PTR APIENTRY DialogProcedure(HWND dialogHWND, UINT message,
|
||||
WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
CWindow aDialogTmp(dialogHWND);
|
||||
CWindow dialogTmp(dialogHWND);
|
||||
if (message == WM_INITDIALOG)
|
||||
aDialogTmp.SetUserDataLongPtr(lParam);
|
||||
CDialog *aDialog = (CDialog *)(aDialogTmp.GetUserDataLongPtr());
|
||||
if (aDialog == NULL)
|
||||
dialogTmp.SetUserDataLongPtr(lParam);
|
||||
CDialog *dialog = (CDialog *)(dialogTmp.GetUserDataLongPtr());
|
||||
if (dialog == NULL)
|
||||
return FALSE;
|
||||
if (message == WM_INITDIALOG)
|
||||
aDialog->Attach(dialogHWND);
|
||||
dialog->Attach(dialogHWND);
|
||||
|
||||
return BoolToBOOL(aDialog->OnMessage(message, wParam, lParam));
|
||||
return BoolToBOOL(dialog->OnMessage(message, wParam, lParam));
|
||||
}
|
||||
|
||||
bool CDialog::OnMessage(UINT message, UINT wParam, LPARAM lParam)
|
||||
bool CDialog::OnMessage(UINT message, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
switch (message)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user