The Code Project

說起CodeProject,大概學習VC++與.NET的人都不會不知道的一個好網站。裡面有個蠻好用的專案CTreeProperty算是相當好使用的專案之ㄧ,可以簡單秀出如下圖一樣的Dialog.

Windows XP - Aqua - screenshot

(PIC: CTreePropSheet - A Netscape/Visual Studio .NET like Preferences Dialog)

讓我困擾許久的是~~如何搞出Minimize Button 呢?後來找到答案了

BOOL CTreePropSheet::OnInitDialog() { ...... ::SetWindowLong( m_hWnd, GWL_STYLE, GetStyle() | WS_MINIMIZEBOX ); GetSystemMenu( FALSE )->InsertMenu( -1, MF_BYPOSITION | MF_STRING, SC_ICON, "Minimize" ); DrawMenuBar(); }  > >

感謝need_help 提供


Evan

Attitude is everything