Replaced dialog resources with control template

Also fixed tabbing in dialogs.
This commit is contained in:
Birunthan Mohanathas
2012-12-13 11:12:25 +02:00
parent 37aee6921e
commit 3d6132811f
13 changed files with 1712 additions and 951 deletions

View File

@@ -1107,8 +1107,6 @@ int CRainmeter::MessagePump()
MSG msg;
BOOL ret;
HACCEL hAccel = LoadAccelerators(m_Instance, MAKEINTRESOURCE(IDR_DIALOG_ACCELERATORS));
// Run the standard window message loop
while ((ret = GetMessage(&msg, NULL, 0, 0)) != 0)
{
@@ -1116,9 +1114,8 @@ int CRainmeter::MessagePump()
{
break;
}
else if (!CDialog::GetActiveDialogWindow() ||
!TranslateAccelerator(CDialog::GetActiveTabWindow(), hAccel, &msg) ||
!IsDialogMessage(CDialog::GetActiveDialogWindow(), &msg))
if (!CDialog::HandleMessage(msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);