pushpin

所属分类:PropertySheet
开发工具:Visual C++
文件大小:15KB
下载次数:7
上传日期:2014-06-03 13:22:18
上 传 者wpudn22
说明:  在属性页的左边加入一个图钉按纽,熟悉Microsoft Developer Stdio的朋友一定很熟悉,里面的一些代码是可以用的,不多介绍了
(On the left the property page to add a pushpin button, the familiar Microsoft Developer Stdio friends must be very familiar with some of the code can be used inside, not much introduction)

文件列表:
pushpin\MyPropertyPage1.cpp (1243, 1997-11-24)
pushpin\MyPropertyPage1.h (1048, 1997-11-24)
pushpin\MyPropertySheet.cpp (697, 2013-12-12)
pushpin\MyPropertySheet.h (618, 1997-11-24)
pushpin\pushpinFrame.cpp (5242, 2013-12-12)
pushpin\pushpinFrame.h (1605, 1998-04-16)
pushpin\PushPinSheet.clw (2554, 1997-11-24)
pushpin\PushPinSheet.cpp (580, 1997-11-24)
pushpin\PushPinSheet.h (1168, 1997-11-24)
pushpin\pushpinsheet.mak (10018, 1998-04-16)
pushpin\PushPinSheet.rc (6463, 1997-11-25)
pushpin\PushPinSheetDlg.cpp (2695, 1998-04-16)
pushpin\PushPinSheetDlg.h (656, 1997-11-24)
pushpin\res\pinned.bmp (238, 1997-11-21)
pushpin\res\pinnede.bmp (358, 1997-11-21)
pushpin\res\pushpinsheet.ico (1078, 1997-11-20)
pushpin\res\pushpinsheet.rc2 (404, 1997-11-26)
pushpin\res\unpinned.bmp (358, 1997-11-21)
pushpin\res\unpinnede.bmp (238, 1997-11-21)
pushpin\Resource.h (1051, 1997-11-24)
pushpin\StdAfx.cpp (210, 1997-11-24)
pushpin\StdAfx.h (928, 1997-11-24)
pushpin\res (0, 1998-01-02)
pushpin (0, 2013-12-12)

Enclosed is the source for a CPushPinFrame class. This class emulates the properties dialogs as seen in Microsoft Developer Studio. They sport a push pin button in the top left hand corner which when unpinned automatically closes the property dialog when the dialog loses focus. The MS implementation seems to use custom draw controls which seems a shame when you lose all the functionality provided by the MFC property sheet classes. The class of interest is CPushPinFrame and is derived from CFrameWnd. It provides a look which is similar to the modal MFC property sheets. You must create one on the heap and you then attach a property sheet to it by using the SetAttachedProperySheet method. This method uses CRuntimeClass so your propery sheet will need DYNCREATE attributes. For further details on how you should setup one in your application have a look at CPushPinSheetDlg::OnProperties() in the demo program. You will also need to pull down the CPushPin class from my web site and copy in the pushpin.cpp and pushpin.h files from that archive. The bitmaps CPushPin uses are already in the demo program. Enjoy, 16th April 19*** PJ Naughter, email: pjn@indigo.ie web: http://indigo.ie/~pjn

近期下载者

相关文件


收藏者