기본 콘텐츠로 건너뛰기

10월, 2007의 게시물 표시

[code project 펌]Hacking the CPropertySheet

돼지스머프 | 돼지스멒 http://blog.naver.com/bbk1999/90001777342 Hacking the CPropertySheet By Mustafa Demirhan Introduction In my applications, I usually need to change the default look and feel and the behavior of Property Sheets. Working with property sheets and pages is really a pain and you must do most of the work on yourself for non-standard operations (such as changing the coordinates of the buttons, adding new controls to the property sheet, ...etc). In this article, I tried to give as many tips and tricks as I can do. Before going in to the details, you should first create a CPropertySheet derived class - say CMyPropSheet. Lets begin with some simple things: Hiding Standards Buttons When our property sheet shows up, by default it has all the buttons visible and the Apply button is disabled. In general we don't need to use Apply button. To hide the apply button, you can simply use the following code: propsheet.m_psh.dwFlags |= PSH_NOAPPLYNOW; Ho