|
When I go to File/New, it works, however, it reduces
the size of my program to a sliver. Then I have to
expand it. How can I make File/New not adjust the
software screen area?
Please, any response any one can give me will be greatly
appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
What non-default code do you have in your view class (e.g., RecalcLayout() , ResizeParentToFit() )?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I have:
<br />
void CMyFormView1::OnInitialUpdate() <br />
{<br />
CFormView::OnInitialUpdate();<br />
GetParentFrame()->RecalcLayout();<br />
ResizeParentToFit();<br />
and I have that code in every CMyFormView1.
Should it be something else?
|
|
|
|
|
Have you tried commenting those last two statements out to see what it does?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
Can you be a little less vague?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
hi!,i want to send an email from my application to my rediffmail account.but due to the problem of smtp server,i am not sucessful.plz any one help providing information of smtp server.
thanks in advance.
|
|
|
|
|
This message board is for specific questions. Have look at the Email & SMTP[^] section of CP.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
how to play sound file from one time to one time?
|
|
|
|
|
|
I have a List control on a tab page. I would like to change the text of the tab page depending on the row the user has selected. How do i do that?
EG...m_tabCtrl.addNewPage("Page 2",&m_page2);
Now the Control List has rows which say "Group 1", "Group 2" ...."Group X".
What function would Change "Page 2" to now read "Group X".
Thanks a Million.
|
|
|
|
|
Use CTabCtrl::SetItem and change the pszText member to the required text string.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thank you.
But being new now the question is how do I reference it from the property page?
|
|
|
|
|
Use CTabCtrl::GetCurSel to get the current selected tab and pass this as the first parameter to CTabCtrl::SetItem .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
thank you.
But that part I understand. I am lost in trying to reference the control.
Dialog based application: class CDialogTest
In here i have the tab contol : class CibTabCntl. variable m_tabCntrl.
in Cibtabcntl-> I added a member funtion as CIbTabCtrl::SetTabTitle(.....).
Property Page class CPropertyPage2 or CPropertyPage1
How do I reference it from CPropertyPage2 or CPropertyPage1.
|
|
|
|
|
There is no CPropertyPage for a tab control.
CPropertyPage is a class that is associated with CPropertySheet .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks.
when I compile i am getting an error
error C2352: 'CPropertySheet::GetTabControl' : illegal call of non-static member function
|
|
|
|
|
Oh Boy!!!
CPropertySheet object;
object.GetTabControl();
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
How can change the Font Dialog default title text from "Fonts" to "Input Fonts" for example?
|
|
|
|
|
Derive a class from CFontDialog and set the title bar from the oninitdialog() function of that class.
|
|
|
|
|
i tried to do that but i got another problem when trying to call the derived dialog because i could not
give the CWnd for it, i call it from SDI Application.Do you have any idea how can i call the derived dialog from sdi? i tried to give the window name in the constructor of the derived class but it does not work.
|
|
|
|
|
I get an access violation in release mode but not in debug.
Yes, I know it's been talked about in many threads and I think I have read all of them. I can even debug release mode now, to impress my colleagues.
It dies when I hop into a dll I wrote, but not always quite in the same place. I have a feeling I have a NULL pointer. Anyway, I have been looking at ways I might be making a null pointer, and have made many improvements, but it still crashes.
HERE is the question...
One of the threads here asked if the poster had code in his constructor. Now I often have code in my constructors, I even call other constructors, with new (and I delete every single one, I promise), and as far as I am concerned this is quite normal and acceptable. Am I wrong? Could this be it? I also put code in destructors, deleting stuff and ending other processes.
-------------
Ave computer! Hackitura te salutat!
(I just made this up. Just to show you can hack Latin as well as C++.)
modified on Monday, May 18, 2009 9:26 AM
|
|
|
|
|
RedSonja wrote: I think I have read all of them
I bet you missed this[^] one.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
No I didn't. That is one of the best ones so far.
(I even bookmarked it.)
-------------
Ave computer! Hackitura te salutat!
(I just made this up. Just to show you can hack Latin as well as C++.)
|
|
|
|
|
I see you have already read Joe's article on surviving the release build. By now, you must be ready to survive the release build, then.
RedSonja wrote: and have made many improvements, but it still crashes.
Which implies that the "many improvements" you made were not to the code which was causing the crash. A crude and quick approach would be to add OutputDebugString()[^] statements in the pieces of code that you suspect. This way, you may know until where the control reaches and where does it crash.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|