Subversion Repositories filter_foundry

Rev

Rev 354 | Rev 393 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 354 Rev 355
Line 209... Line 209...
209
 
209
 
210
                for(i = 0; i < 4; ++i){
210
                for(i = 0; i < 4; ++i){
211
                        // If Visual Themes are applied, SS_ICON will be ignored for controls which are not exactly "STATIC" class.
211
                        // If Visual Themes are applied, SS_ICON will be ignored for controls which are not exactly "STATIC" class.
212
                        // Our derivated "CautionSign" class won't work. So we need to set the icon explicitly.
212
                        // Our derivated "CautionSign" class won't work. So we need to set the icon explicitly.
213
                        SendDlgItemMessage(hDlg, FIRSTICONITEM+i, STM_SETICON, (WPARAM)LoadImage(hDllInstance, "CAUTION_ICO",IMAGE_ICON,16,16, LR_DEFAULTCOLOR), 0);
213
                        SendDlgItemMessage(hDlg, FIRSTICONITEM+i, STM_SETICON, (WPARAM)LoadImage(hDllInstance, "CAUTION_ICO",IMAGE_ICON,16,16, LR_DEFAULTCOLOR), 0);
214
                        CreateToolTip(FIRSTICONITEM + i, hDlg, "Syntax error! Click to see details.");
214
                        CreateToolTip(FIRSTICONITEM + i, hDlg, _strdup("Syntax error! Click to see details."));
215
                }
215
                }
216
 
216
 
217
                CreateToolTip(ZOOMINITEM, hDlg, "Zoom in");
217
                CreateToolTip(ZOOMINITEM, hDlg, _strdup("Zoom in"));
218
                CreateToolTip(ZOOMOUTITEM, hDlg, "Zoom out");
218
                CreateToolTip(ZOOMOUTITEM, hDlg, _strdup("Zoom out"));
219
                CreateToolTip(ZOOMLEVELITEM, hDlg, "Zoom fully in/out");
219
                CreateToolTip(ZOOMLEVELITEM, hDlg, _strdup("Zoom fully in/out"));
220
 
220
 
221
                // Note: Actually, the whole class gets the cursor, not just these three controls!!
221
                // Note: Actually, the whole class gets the cursor, not just these three controls!!
222
                if (hCurHandPoint) {
222
                if (hCurHandPoint) {
223
                        SetClassLongPtr(GetDlgItem(hDlg, ZOOMINITEM), GCLP_HCURSOR, (LONG_PTR)hCurHandPoint);
223
                        SetClassLongPtr(GetDlgItem(hDlg, ZOOMINITEM), GCLP_HCURSOR, (LONG_PTR)hCurHandPoint);
224
                        SetClassLongPtr(GetDlgItem(hDlg, ZOOMOUTITEM), GCLP_HCURSOR, (LONG_PTR)hCurHandPoint);
224
                        SetClassLongPtr(GetDlgItem(hDlg, ZOOMOUTITEM), GCLP_HCURSOR, (LONG_PTR)hCurHandPoint);