Mercurial > vim
comparison src/gui_w32.c @ 87:014ba200db86
updated for version 7.0035
author | vimboss |
---|---|
date | Sat, 08 Jan 2005 21:45:39 +0000 |
parents | 410fa1a31baf |
children | 72aefd4c1e0d |
comparison
equal
deleted
inserted
replaced
86:8173ec1e9f1f | 87:014ba200db86 |
---|---|
3182 char_u *label, *text; | 3182 char_u *label, *text; |
3183 int acLen = 0; | 3183 int acLen = 0; |
3184 int nameLen; | 3184 int nameLen; |
3185 int padding0, padding1, padding2 = 0; | 3185 int padding0, padding1, padding2 = 0; |
3186 int sepPadding=0; | 3186 int sepPadding=0; |
3187 int x; | |
3188 int y; | |
3187 #ifdef USE_SYSMENU_FONT | 3189 #ifdef USE_SYSMENU_FONT |
3188 LOGFONT lfSysmenu; | 3190 LOGFONT lfSysmenu; |
3189 int use_lfSysmenu = FALSE; | 3191 int use_lfSysmenu = FALSE; |
3190 #endif | 3192 #endif |
3191 | 3193 |
3302 *p++ = HIWORD(lStyle); | 3304 *p++ = HIWORD(lStyle); |
3303 *p++ = LOWORD(lExtendedStyle); | 3305 *p++ = LOWORD(lExtendedStyle); |
3304 *p++ = HIWORD(lExtendedStyle); | 3306 *p++ = HIWORD(lExtendedStyle); |
3305 pnumitems = p; /* save where the number of items must be stored */ | 3307 pnumitems = p; /* save where the number of items must be stored */ |
3306 *p++ = 0; // NumberOfItems(will change later) | 3308 *p++ = 0; // NumberOfItems(will change later) |
3309 gui_mch_getmouse(&x, &y); | |
3307 if (initX == 0xffffL) | 3310 if (initX == 0xffffL) |
3308 *p++ = PixelToDialogX(gui_mch_get_mouse_x()); // x | 3311 *p++ = PixelToDialogX(x); // x |
3309 else | 3312 else |
3310 *p++ = PixelToDialogX(initX); // x | 3313 *p++ = PixelToDialogX(initX); // x |
3311 if (initY == 0xffffL) | 3314 if (initY == 0xffffL) |
3312 *p++ = PixelToDialogY(gui_mch_get_mouse_y()); // y | 3315 *p++ = PixelToDialogY(y); // y |
3313 else | 3316 else |
3314 *p++ = PixelToDialogY(initY); // y | 3317 *p++ = PixelToDialogY(initY); // y |
3315 *p++ = PixelToDialogX(dlgwidth); // cx | 3318 *p++ = PixelToDialogX(dlgwidth); // cx |
3316 ptrueheight = p; | 3319 ptrueheight = p; |
3317 *p++ = 0; // dialog height: changed later anyway | 3320 *p++ = 0; // dialog height: changed later anyway |