07-10-2006 03:11 AM
07-10-2006 05:14 AM - edited 07-10-2006 05:14 AM
In MS VC++ app, you can use CW controls as like as other 3rd party ActiveX controls.
Open the design view of the dialog resource in your MFC app project, right-click on the dialog-form to show the popup menu. Then select "Insert ActiveX Control..." menu. You will see the list screen containg available ActiveX controls (OCX) then select the CWSlide object.
To generate the control's wrapper C++ codes, go for MFC ClassWizard then add the associated member variable (beginning with m_ prefix) of CCWSlide type. The VC++ IDE automatically generates wrapper C++ codes for the control and adds them into your MFC project. (The wrapper source codes are generated by reverse-engeering OCX's type library.) To add your event handlers of the control, use ClassWizard as like as other 3rd party controls.
Makoto
このメッセージは 07-10-2006 08:16 PMに Makoto が編集しています。