summaryrefslogtreecommitdiff
path: root/plugins/FloatingContacts/src/options.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2018-05-16 21:48:52 +0300
committerMataes <mataes2007@gmail.com>2018-05-16 21:49:13 +0300
commit650fc5a2103cedfe149500ade9c684ecf381d348 (patch)
treea7f4727baa7b298992a65d240a6017dda3a82f9a /plugins/FloatingContacts/src/options.cpp
parentf1195d51ea8094492fcf63a301f2cdc9d1173d6c (diff)
FavContacts, FileAsMessage, Fingerprint, FloatingContacts, Folders, FTPFile: cmplugin adaptation
Diffstat (limited to 'plugins/FloatingContacts/src/options.cpp')
-rw-r--r--plugins/FloatingContacts/src/options.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/plugins/FloatingContacts/src/options.cpp b/plugins/FloatingContacts/src/options.cpp
index c27c29b242..f34b610674 100644
--- a/plugins/FloatingContacts/src/options.cpp
+++ b/plugins/FloatingContacts/src/options.cpp
@@ -243,25 +243,25 @@ static INT_PTR APIENTRY OptSknWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LP
break;
case IDC_BROWSE:
- {
- wchar_t str[MAX_PATH], filter[512];
- GetDlgItemText(hwndDlg, IDC_FILENAME, str, _countof(str));
- Bitmap_GetFilter(filter, _countof(filter));
-
- OPENFILENAME ofn = { 0 };
- ofn.lStructSize = sizeof(ofn);
- ofn.hwndOwner = hwndDlg;
- ofn.lpstrFilter = filter;
- ofn.lpstrFile = str;
- ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
- ofn.nMaxFile = _countof(str);
- ofn.nMaxFileTitle = MAX_PATH;
- ofn.lpstrDefExt = L"bmp";
- if (!GetOpenFileName(&ofn))
- return FALSE;
- SetDlgItemText(hwndDlg, IDC_FILENAME, str);
- }
- break;
+ {
+ wchar_t str[MAX_PATH], filter[512];
+ GetDlgItemText(hwndDlg, IDC_FILENAME, str, _countof(str));
+ Bitmap_GetFilter(filter, _countof(filter));
+
+ OPENFILENAME ofn = { 0 };
+ ofn.lStructSize = sizeof(ofn);
+ ofn.hwndOwner = hwndDlg;
+ ofn.lpstrFilter = filter;
+ ofn.lpstrFile = str;
+ ofn.Flags = OFN_FILEMUSTEXIST | OFN_HIDEREADONLY;
+ ofn.nMaxFile = _countof(str);
+ ofn.nMaxFileTitle = MAX_PATH;
+ ofn.lpstrDefExt = L"bmp";
+ if (!GetOpenFileName(&ofn))
+ return FALSE;
+ SetDlgItemText(hwndDlg, IDC_FILENAME, str);
+ }
+ break;
case IDC_FILENAME:
if (EN_CHANGE != HIWORD(wParam) || (HWND)lParam != GetFocus())
@@ -333,7 +333,7 @@ static INT_PTR APIENTRY OptSknWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LP
int OnOptionsInitialize(WPARAM wParam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { 0 };
- odp.hInstance = hInst;
+ odp.hInstance = g_plugin.getInst();
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_FLTCONT);
odp.szTitle.a = LPGEN("Floating Contacts");
odp.szGroup.a = LPGEN("Contact list");