comparison os2/dw.c @ 1314:c969db49606e

Initial commit allowing dw_window_set_style() to work on menu item handles.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 04 Nov 2011 14:13:38 +0000
parents 5f3ce2b1e82d
children 9c585eaacb22
comparison
equal deleted inserted replaced
1313:9f12bc79924b 1314:c969db49606e
6361 * width: New width in pixels. 6361 * width: New width in pixels.
6362 * height: New height in pixels. 6362 * height: New height in pixels.
6363 */ 6363 */
6364 void API dw_window_set_style(HWND handle, ULONG style, ULONG mask) 6364 void API dw_window_set_style(HWND handle, ULONG style, ULONG mask)
6365 { 6365 {
6366 WinSetWindowBits(handle, QWL_STYLE, style, mask); 6366 if(handle < 65536)
6367 {
6368 char buffer[30];
6369 HMENUI mymenu;
6370
6371 sprintf(buffer, "_dw_id%ld", handle);
6372 mymenu = (HMENUI)dw_window_get_data(hwndApp, buffer);
6373
6374 if(mymenu && WinIsWindow(dwhab, mymenu))
6375 dw_menu_item_set_state(mymenu, handle, style & mask);
6376 }
6377 else
6378 WinSetWindowBits(handle, QWL_STYLE, style, mask);
6367 } 6379 }
6368 6380
6369 /* 6381 /*
6370 * Adds a new page to specified notebook. 6382 * Adds a new page to specified notebook.
6371 * Parameters: 6383 * Parameters: