Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Cannot add event handler in VS2008 Collapse All
Subject Author Date
Dongsik Chae Nov 15, 2008 - 9:25 PM


I cannot add event handler if I inherit my dialog box from CExtResizableDialog.

When I inherit my dialog box from CDialog, then it works fine.

How can I solve this problem?

Should I reinstall the Prof UIS? Will it solve the problem?

What I just want to do is the ’Event Handler Wizard’ shows ’Message types’ and let me add the event handler to any

control in a dialog box.



Technical Support Nov 17, 2008 - 7:11 AM

Visual Studio 2005 / 2008 code wizards do not work with a class that has a template-based class in the parent hierarchy. The CExtResizableDialog class is derived from CExtWA < CExtWS < CExtADLG < CExtResDlg > > > . If your dialog class is declared as follows:

class CYourDialog : publc CExtResizableDialog
            . . .
Then you can temporarily change the CExtResizableDialog word with the CDialog word in the class CYourDialog : publc CExtResizableDialog line of code. The wizards in your visual studio will start working with the CYourDialog class. You don’t need to replace the CExtResizableDialog word in any other places and you don’t need to restart your Visual studio.