|
hi
i want to dynamically change the no of buttons tobe displayed in mfc dilog box
for that i hav created initially 10 buttons.but at runtime depending on condition i want to display and activate only some of the buttons.
Girish
|
|
|
|
|
use CWnd::ShowWindow()
modified on Wednesday, January 09, 2008 7:20:22 AM
|
|
|
|
|
toxcct wrote: CWnd::ShowWindow(BOOL)
A small correction, shouldn't mentioning BOOl leads confusion ? as ShowWindow take more than just TRUE or FALSE .
|
|
|
|
|
Good point indeed.
I always forget too it takes the (int) SW_ values.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Hi everyone,
I developed two dialog based applications.
i want to develop them as two dll's,
then i will call them in another dialog application to execute.
so help me out.
thanx in advance
Reagards
Shiva
|
|
|
|
|
|
Bad design, I suppose.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Hi..
I cannot update the xml file attributes using win32 console application.Plz help mme
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
And what was the error?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
I dont have the code to update xml file attributes using win32 console application.plz help me..
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
sharanu wrote: Hi..
I cannot update the xml file attributes using win32 console application.Plz help mme
The above is you old post. No much info and then I was unable to help you.
hence I asked for more details.
sharanu wrote: I dont have the code to update xml file attributes using win32 console application.plz help me..
Your reply: finally a lot of interesting details...Now I can help you for sure.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
|
I dont have the code
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
sharanu wrote: I dont have the code
so WTF are you trying to do then ?
|
|
|
|
|
my code is:
int main(int argc, char* argv[])
{
char strfilepath[]={"D:\\s.xml"};
char xmltag[100];
char ch;
ifstream infile(strfilepath);
if(infile)
{
cout<<"current file contents"<<endl;
while(infile.get(ch))
{
if(ch!=EOF)
{
cout.put(ch);
}
}
}
infile.close();
cout<<"Open file to append\n";
ofstream outfile(strfilepath,ios::app);
if(!outfile)
{
cout<<"Unable to open\n";
return 1;
}
cout<<"enter xml contents"<<endl;
cin>>xmltag;
outfile<<xmltag<<endl;
outfile.close();
return 1;
}
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
damnit.
Edit your message and format this immediately (use <pre></pre> tags around code samples).
BTW, for handling XML stuff, you can always use the TinyXML Library[^].
|
|
|
|
|
my project is a SDI(View base CFormView)
|
|
|
|
|
You could use AfxGetApp() to get the application instance then the m_pMainWnd member of the applications CWinThread base class to get a pointer to the CMainFrame. I'm pretty sure that will work but you're stretching my rusty MFC to the limit there
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
I am trying to resize a control on the event ON_WM_SIZE...
I have created the appropriate handler 'OnSize()' for it in the control class..but the problem is that the OnSize is called once before the control creation...which is ok..but later on when the control container window is resized...OnSize doesn't get called..
Any help is appreciated
Regards,
AbbyIndian
...A Programmer may or may not be the master of the programming language grammar...
|
|
|
|
|
If the window in which you placed the control is resized, the control won't be resized automatically. You'll have to handle that yourself, you'll need to set the new size of the control.
|
|
|
|
|
call MoveWindow in the control's parent OnSize member function to explicitly change the control's size.
|
|
|
|
|
MoveWindow is being called from the parent's OnSize() function....actually it has about 5 controls.....the OnSize() of 4 controls is working but not for the 5th one...maybe I did something wrong in creating the 5th control's ....any idea what the issue could be.. ?
...A Programmer may or may not be the master of the programming language grammar...
|
|
|
|
|
AbbyIndian wrote: maybe I did something wrong in creating the 5th control
or maybe you made a mistake on MoveWindow for that control, but without seeing your code, we can only guess, my friend.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Typically, in a dialog based application, when you change the size of the dialog, it will not send WM_SIZE message to it's child controls.
I guess you may use some custom controls.
Wish
A Chinese VC++ programmer
|
|
|
|
|
See the Extras section of this article.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|