Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LoadFromResource - HTML view

Status
Not open for further replies.

richsb

Technical User
Aug 2, 2001
34
NO
Hi,

I have a HTMLview SDI with a couple of CDialogBars inserted. On the Bars, I have a couple of buttons which increases the count of an index int when clicked. On that action I want to be able to load a html document in the main window. I have been trying to get this done with the 'LoadFromResource()' funciton which works well when opening the programme. BUT, whatever class I use/create to call this one, it just comes up saying that 'LoadFromResource is an undeclared identifier' which clearly it is not.

Any ideas or suggestions why this might be and a solution would be appreciated.

R
 
For the use of others, I have been able to sort this one.

What it was, was that as my control dialogbar was assigned to the MainFrame classI had put my button bn_clicked functions in that class as well. Obviously this class has nothing much to do with updating the view. I then just spotted that if you call up the classwizard from the control bar template rather say the menu or the window of another CPP file, you are able to place a bn_clicked function for your button controls in any other the other classes in your project and at the same time.

Now they don't tell you that in the manuals !!!!

Give myself a tick for that!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top