diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-09 11:51:24 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-09 11:51:24 +0000 |
commit | b95557a7c42cbec1406a2ac7be1ca039c2fd21e0 (patch) | |
tree | 8d74bbe401664846ef0c6b2603ac9026cd529e2e /plugins/SendScreenshotPlus/src/Utils.cpp | |
parent | 3e1d25be1eb2dfa0a6456636e2fcbf368c981243 (diff) |
fixed crash when click SendSS item in main menu
git-svn-id: http://svn.miranda-ng.org/main/trunk@3936 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/Utils.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/Utils.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/SendScreenshotPlus/src/Utils.cpp b/plugins/SendScreenshotPlus/src/Utils.cpp index 70eb7a11df..ab74f569a1 100644 --- a/plugins/SendScreenshotPlus/src/Utils.cpp +++ b/plugins/SendScreenshotPlus/src/Utils.cpp @@ -27,6 +27,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "global.h"
//---------------------------------------------------------------------------
+//Workaround for MS bug ComboBox_SelectItemData
+int ComboBox_SelectItemData(HWND hwndCtl, int indexStart, LPARAM data) {
+ int i = 0;
+ for ( i ; i < ComboBox_GetCount(hwndCtl); i++) {
+ if(data == ComboBox_GetItemData(hwndCtl, i)) {
+ ComboBox_SetCurSel (hwndCtl,i);
+ return i;
+ }
+ }
+ return CB_ERR;
+}
+
+//---------------------------------------------------------------------------
// MonitorInfoEnum
size_t MonitorInfoEnum(MONITORINFOEX* & myMonitors, RECT & virtualScreen) {
MONITORS tmp = {0,0};
|