fix always on top menu option
This commit is contained in:
@@ -173,7 +173,7 @@ HWND CreateListView(HWND hWndParent, RECT rc)
|
||||
{
|
||||
HWND hWndListView;
|
||||
LVITEM lviTestItem;
|
||||
//WCHAR szTestItem[20] = L"Test Item\0";
|
||||
//WCHAR szTestItem[] = L"Test Item\0";
|
||||
|
||||
// Create the ListView
|
||||
hWndListView = CreateWindowEx(WS_EX_LEFT, WC_LISTVIEW, L"",
|
||||
|
||||
@@ -141,7 +141,7 @@ LRESULT CALLBACK CmdProc(HWND hWnd, WPARAM wParam, LPARAM lParam)
|
||||
|
||||
case IDM_OPTIONS_TOPMOST:
|
||||
bTopMost = !bTopMost;
|
||||
SetWindowPos(hWndProgMgr, bTopMost ? HWND_TOPMOST : HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOZORDER | SWP_NOSIZE);
|
||||
SetWindowPos(hWndProgMgr, bTopMost ? HWND_TOPMOST : HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE);
|
||||
UpdateChecks(bTopMost, IDM_OPTIONS, IDM_OPTIONS_TOPMOST);
|
||||
goto SaveConfig;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user