comparison os2/dw.c @ 1010:9af693aafa93

Attempt at implmenting dw_window_get_font on OS/2. Also some more formatting cleanups in the template.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 14 May 2011 06:40:27 +0000
parents f1256b32fd22
children b7e7e2bc8085
comparison
equal deleted inserted replaced
1009:f1256b32fd22 1010:9af693aafa93
4087 * handle: The window (widget) handle. 4087 * handle: The window (widget) handle.
4088 * fontname: Name and size of the font in the form "size.fontname" 4088 * fontname: Name and size of the font in the form "size.fontname"
4089 */ 4089 */
4090 char * API dw_window_get_font(HWND handle) 4090 char * API dw_window_get_font(HWND handle)
4091 { 4091 {
4092 return "not implemented"; 4092 char *str = (char *)alloca(50);
4093 if(str && WinQueryPresParam(handle, PP_FONTNAMESIZE, 0, NULL, 50, str, QPF_NOINHERIT))
4094 return strdup(str);
4095 return NULL;
4093 } 4096 }
4094 4097
4095 /* Internal version */ 4098 /* Internal version */
4096 int _dw_window_set_color(HWND handle, ULONG fore, ULONG back) 4099 int _dw_window_set_color(HWND handle, ULONG fore, ULONG back)
4097 { 4100 {