////////////////////////////////////////////////////////////////////// // PictureEx.cpp: implementation of the CPicture class. // // Picture displaying control with support for the following formats: // GIF (including animated GIF87a and GIF89a), JP
在桌面属性里面添加一个页面 STDMETHODIMP CDisplayCplExt::AddPages ( LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam ) { // This method adds a new page to the Display property sheet. PROPSHEETPAGE psp; HPROPSHEETPAGE hPage; // Set up the PROPSHEETPAGE struct. Zero
VISUAL_C++MFC编程实例用Visual C++ 和M F C创建的应用程序大多会自动生成窗口,并且可以处理消息, 进行绘图。M i c r o s o f t在这方面做了大量的工作,隐藏了内部工作,使我们能够更轻松 地创建一个一般的应用程序。然而,当用户不能实现他们想要实现的功能时,适当地 了解内部工作机制,对于消除编程上的困惑会有好处。更重要的是,知道怎样执行任 务(诸如把窗口放置到什么地方,从什么地方获得一个消息和在任意地方绘图),有助 于分清用户的应用程序和由Visual C+