Skip to content

Commit

Permalink
Fixed always on top issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
tiglat committed Jun 21, 2019
1 parent d3c2189 commit bfa56db
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.ENG
Expand Up @@ -146,7 +146,7 @@ ver. 3.1.9
- fixed - problem when ini file each time during the same TotalCmd session was written
one directory higher than previous time begining from working directory of TotalCmd.

версия 4.0.0 - 17/06/2019
ver. 4.0.0 - 17/06/2019
- new - introduced Unicode characters support. Now file lists are written in UTF-16 LE BOM.
New file lists will not be read by the old version of plugin.
New plugin supports old file lists created before. New plugin can also work with old versions of TotalCommander,
Expand Down
2 changes: 1 addition & 1 deletion src/CatalogMaker.rc
Expand Up @@ -66,7 +66,7 @@ END
//

IDD_OPTIONSDLG DIALOGEX 0, 0, 143, 118
STYLE DS_SYSMODAL | DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Catalog Maker Options"
FONT 8, "MS Shell Dlg", 400, 0, 0xCC
BEGIN
Expand Down
44 changes: 10 additions & 34 deletions src/UIFunc.cpp
Expand Up @@ -30,17 +30,8 @@

void CheckButton( HWND hDlg, UINT ItemCode )
{
HWND hItem = GetDlgItem(
hDlg,
ItemCode
);

SendMessage(
hItem,
BM_SETCHECK,
BST_CHECKED,
0
);
HWND hItem = GetDlgItem(hDlg, ItemCode);
SendMessage(hItem, BM_SETCHECK, BST_CHECKED, 0);
}

/*****************************************************************************
Expand All @@ -57,17 +48,8 @@ void CheckButton( HWND hDlg, UINT ItemCode )

void UncheckButton( HWND hDlg, UINT ItemCode )
{
HWND hItem = GetDlgItem(
hDlg,
ItemCode
);

SendMessage(
hItem,
BM_SETCHECK,
BST_UNCHECKED,
0
);
HWND hItem = GetDlgItem(hDlg, ItemCode);
SendMessage(hItem, BM_SETCHECK, BST_UNCHECKED, 0);
}

/*****************************************************************************
Expand All @@ -84,11 +66,7 @@ void UncheckButton( HWND hDlg, UINT ItemCode )

void EnableControl( HWND hDlg, UINT ItemCode )
{
HWND hItem = GetDlgItem(
hDlg,
ItemCode
);

HWND hItem = GetDlgItem(hDlg, ItemCode);
EnableWindow( hItem, TRUE );
}

Expand All @@ -106,11 +84,7 @@ void EnableControl( HWND hDlg, UINT ItemCode )

void DisableControl( HWND hDlg, UINT ItemCode )
{
HWND hItem = GetDlgItem(
hDlg,
ItemCode
);

HWND hItem = GetDlgItem(hDlg, ItemCode);
EnableWindow( hItem, FALSE );
}

Expand Down Expand Up @@ -294,8 +268,10 @@ VOID OnSelChanged( HWND hDlg )
{
UINT CurPageIndex = TabCtrl_GetCurSel( g_DlgDesc.hTabCtrl );

if ( g_DlgDesc.hCurDlg != NULL )
ShowWindow( g_DlgDesc.hCurDlg, SW_HIDE );
if (g_DlgDesc.hCurDlg != NULL)
{
ShowWindow(g_DlgDesc.hCurDlg, SW_HIDE);
}

// Create the new child dialog box.
g_DlgDesc.hCurDlg = g_DlgDesc.hChildDlg[CurPageIndex];
Expand Down

0 comments on commit bfa56db

Please sign in to comment.