Link to home
Start Free TrialLog in
Avatar of GPaterson
GPaterson

asked on

Using resource templates in Win32 Apps

This should be a simple question to most of you experts,
In an effort to move with the times I have decided to try using resource templates instead of manually coding all my gui's.
I have added a resource template for a dialog box to my Win32 application however, the events... option when right clicking on the control is disabled and I cant figure out how to enable it so that I can tie in events to functions in my program. I also cant seem to get a ResourceView tab in my project inbetween ClassView and FileView.

So basically, my question is, how do I manually go about adding the ability to work with resource templates to my Win32 App.

Please dont answer with a solution like "Create and MFC app wizard project" or something simillar as this is not what I want to acheive.

Avatar of Snurre
Snurre

First of all... Did u choose Resource Script so you diden't pick the wrong one when creating the Resource...

And you can tie events in the Dialog... in the
switch(Message) you can add the events you need

for ex...

switch(Message)
{
case WM_INITDIALOG:
     return TRUE;

case WM_PAINT:
     do Something;
     break;
}

someting like that, was this what you meant??
     

Avatar of GPaterson

ASKER

Ah, I had added the wrong one at first. Now that I add a resource script and not a template the ResourceView has appeared and the Class Wizard is now available when I right click on a recource but the events... option is still not available. What do I need to do to enable that?
ASKER CERTIFIED SOLUTION
Avatar of Snurre
Snurre

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial