Re: Where did the buttons come from?
From: Christopher J. Holland......................................................... (msnews_at_microsoft.com)
Date: 01/27/05
- Next message: ajay_at_webtechdevelopers.com: "How to open incorrect URL in Internet Explorer ?"
- Previous message: Jiangsheng[MVP/VC]: "Re: Image in Dialog Pulled from Internet"
- In reply to: ShipHead: "Where did the buttons come from?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 26 Jan 2005 20:35:21 -0800
I just had that problem, only I wanted the controls to show up.
Open the .rc file in a text editor.
Scroll down to the IDD_YOURDIALOG.
Find the control, button, etc and delete it.
There are a couple other places in your code you should be aware of.
1. The Dialog .h file contains an afx_msg void Onbnclickedsomebutton()
2. The Dialog .cpp file BEGIN_MESSAG_MAP contains ON_BN_CLICKED(IDC_SOMEID,
OnBnClickedSomething)
3. There will also be the function in the .cpp file "void
CYourDialog::OnBnClickedSomething();
This is also good to do from time to time:
Right click on the Project.rc in the Resource View.
Click on "Resource Symbols".
Delete all the ones that don't have a check mark in the
"in use" column.
Good Luck,
-- Christopher J. Holland [!MVP] http://www.mvps.org/vcfaq/ http://www.codeguru.com http://www.codeproject.com http://www.naughter.com/ http://support.microsoft.com/default.aspx http://msdn.microsoft.com/howto/ http://msdn.microsoft.com/library/ www.flounder.com/mvp_tips.htm "ShipHead" <GoAway@SpamBoy.com> wrote in message news:%23$0MgX$AFHA.2880@TK2MSFTNGP14.phx.gbl... >I just created a dialog based mfc application. > Two buttons appear on the application when it is run > Ok and Cancel. > They are not there when I edit the dialog in the resource editor. > Yet when I run the application, there they are. > How do I get rid of them? > >
- Next message: ajay_at_webtechdevelopers.com: "How to open incorrect URL in Internet Explorer ?"
- Previous message: Jiangsheng[MVP/VC]: "Re: Image in Dialog Pulled from Internet"
- In reply to: ShipHead: "Where did the buttons come from?"
- Messages sorted by: [ date ] [ thread ]