comparison win/dw.c @ 514:08d770271709

More function name changes for Rexx/DW compatibility.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 12 Mar 2004 23:47:37 +0000
parents 7755599311d4
children caa7ed17c132
comparison
equal deleted inserted replaced
513:7755599311d4 514:08d770271709
878 878
879 thisbox->grouppady = 0; 879 thisbox->grouppady = 0;
880 880
881 if(text) 881 if(text)
882 { 882 {
883 dw_font_text_extents(thisbox->grouphwnd, 0, text, NULL, &thisbox->grouppady); 883 dw_font_text_extents_get(thisbox->grouphwnd, 0, text, NULL, &thisbox->grouppady);
884 dw_free(text); 884 dw_free(text);
885 } 885 }
886 886
887 if(thisbox->grouppady) 887 if(thisbox->grouppady)
888 thisbox->grouppady += 3; 888 thisbox->grouppady += 3;
1245 int textheight, diff, total = height + vectory; 1245 int textheight, diff, total = height + vectory;
1246 1246
1247 GetWindowText(handle, tmpbuf, 1023); 1247 GetWindowText(handle, tmpbuf, 1023);
1248 1248
1249 /* Figure out how big the text is */ 1249 /* Figure out how big the text is */
1250 dw_font_text_extents(handle, 0, tmpbuf, 0, &textheight); 1250 dw_font_text_extents_get(handle, 0, tmpbuf, 0, &textheight);
1251 1251
1252 diff = (total - textheight) / 2; 1252 diff = (total - textheight) / 2;
1253 1253
1254 MoveWindow(handle, currentx + pad, currenty + pad + diff, 1254 MoveWindow(handle, currentx + pad, currenty + pad + diff,
1255 width + vectorx, height + vectory - diff, FALSE); 1255 width + vectorx, height + vectory - diff, FALSE);
5031 { 5031 {
5032 return GetSystemMetrics(SM_CYSCREEN); 5032 return GetSystemMetrics(SM_CYSCREEN);
5033 } 5033 }
5034 5034
5035 /* This should return the current color depth */ 5035 /* This should return the current color depth */
5036 unsigned long API dw_color_depth(void) 5036 unsigned long API dw_color_depth_get(void)
5037 { 5037 {
5038 int bpp; 5038 int bpp;
5039 HDC hdc = GetDC(HWND_DESKTOP); 5039 HDC hdc = GetDC(HWND_DESKTOP);
5040 5040
5041 bpp = GetDeviceCaps(hdc, BITSPIXEL); 5041 bpp = GetDeviceCaps(hdc, BITSPIXEL);
7355 * pixmap: Handle to the pixmap. (choose only one of these) 7355 * pixmap: Handle to the pixmap. (choose only one of these)
7356 * text: Text to be queried. 7356 * text: Text to be queried.
7357 * width: Pointer to a variable to be filled in with the width. 7357 * width: Pointer to a variable to be filled in with the width.
7358 * height Pointer to a variable to be filled in with the height. 7358 * height Pointer to a variable to be filled in with the height.
7359 */ 7359 */
7360 void API dw_font_text_extents(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height) 7360 void API dw_font_text_extents_get(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height)
7361 { 7361 {
7362 HDC hdc; 7362 HDC hdc;
7363 int mustdelete = 0; 7363 int mustdelete = 0;
7364 HFONT hFont = NULL, oldFont; 7364 HFONT hFont = NULL, oldFont;
7365 SIZE sz; 7365 SIZE sz;