DevCon for OS/2 - Developer Connection |
Operating systems: ArcaOS, eComStation, IBM OS/2 Warp |
|
|
/ Guidelines: Base control elements / Frame controls
Frame-controlsQ: How to hide Titlebar of frame window? Collect HWND of title, maxmin button, .. To hide the title bar: BarTitle=WinWindowFromID( BarHWND, FID_TITLEBAR ); WinSetParent( BarTitle, HWND_OBJECT, FALSE ); WinSetParent( hWndTitle, HWND_OBJECT, TRUE ); WinSetParent( hWndSysMenu, HWND_OBJECT, TRUE ); WinSetParent( hWndMinMax, HWND_OBJECT, TRUE ); //WinInvalidateRect(hwndFrame,NULL,TRUE); To restore title bar: WinSetParent( hWndTitle, hwndFrame, TRUE ); WinSetParent( hWndSysMenu, hwndFrame, TRUE ); WinSetParent( hWndMinMax, hwndFrame, TRUE ); Q: Какие способы изменения заголовка frame-окна существуют? Несколько вариантов:
Q: Как ограничить максимальный / минимальный размер фрейм-окна? |
|
||
(C) OS2.GURU 2001-2024