I'm having some of trouble understanding exactly how an MFC GUI works.
What is the resource file for and exactly how does it relate to the classes you create (e.g. the subclass of CDialog)?
Specifically, I want to add some bitmap buttons (CBitmapButton) to my dialog, so I followed the first part of this article:
http://www.functionx.com/visualc/controls/bmpbtn.htm
Everything worked fine, but then later on it says to use the resource ID of your bitmap button. How would I go about creating a resource ID and adding it to the resource script?
I added some regular buttons to my dialog using the dialog editor, and found this in the script:
BEGIN
PUSHBUTTON "Button1",IDC_BUTTON1,57,46,50,14
PUSHBUTTON "Button2",IDC_BUTTON2,129,47,50,14
PUSHBUTTON "Button3",IDC_BUTTON3,55,18,50,14
PUSHBUTTON "Button4",IDC_BUTTON4,121,19,50,14
END
If I wanted to access the actual object of one of those buttons and call it's functions, how would I do that? Also, is there anything instead of "PUSHBUTTON" that I can use for CBitmapButtons?
I've taken a look at all the files VS generated but can't figure out how everything works together. None of the MFC tutorials I've looked at bother explaining the relationship with the resource script either.
Any help would be appreciated. Thank you.