Click here to Skip to main content
15,896,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A 'new' operator problem: Pin
jmkhael30-Sep-02 6:13
jmkhael30-Sep-02 6:13 
GeneralRe: A 'new' operator problem: got it now.. Pin
ns30-Sep-02 6:22
ns30-Sep-02 6:22 
GeneralRe: A 'new' operator problem: got it now.. Pin
jmkhael30-Sep-02 6:21
jmkhael30-Sep-02 6:21 
GeneralFormView override doubt Pin
RuiSantiago30-Sep-02 5:58
RuiSantiago30-Sep-02 5:58 
GeneralRe: FormView override doubt Pin
jmkhael30-Sep-02 6:02
jmkhael30-Sep-02 6:02 
GeneralRe: FormView override doubt Pin
RuiSantiago30-Sep-02 6:25
RuiSantiago30-Sep-02 6:25 
GeneralRe: FormView override doubt Pin
jmkhael30-Sep-02 6:35
jmkhael30-Sep-02 6:35 
GeneralRe: FormView override doubt Pin
RuiSantiago30-Sep-02 6:58
RuiSantiago30-Sep-02 6:58 
I tried that, with and without GetParentFrame()->RecalcLayout();
And in none of those ways i got satisfactory results.

I'm doing like :

void CStocks::OnDraw(CDC* /*pDC*/)
{
CRect myRect;
CSize mySize;

GetClientRect(&myRect);

if (myRect.bottom<=m_iLastY)
{
myRect.bottom+=500;
MoveWindow(&myRect, FALSE);
mySize=myRect.Size();
SetScrollSizes(MM_TEXT, mySize);
//GetParentFrame()->RecalcLayout();
}
}

After OnActivateView is finished, i have the final value for m_iLastY, and then iwant to use it to resize, is there an alternative to OnDraw?

Am i doing something wrong?

Thank again
GeneralRe: FormView override doubt Pin
jmkhael30-Sep-02 7:44
jmkhael30-Sep-02 7:44 
GeneralRe: FormView override doubt Pin
RuiSantiago1-Oct-02 0:53
RuiSantiago1-Oct-02 0:53 
GeneralCFile and read Pin
ns30-Sep-02 5:43
ns30-Sep-02 5:43 
GeneralRe: CFile and read Pin
jmkhael30-Sep-02 5:52
jmkhael30-Sep-02 5:52 
GeneralRe: CFile and read Pin
jmkhael30-Sep-02 5:58
jmkhael30-Sep-02 5:58 
GeneralRe: CFile and read Pin
ns30-Sep-02 6:05
ns30-Sep-02 6:05 
QuestionWrite to Excel File ??? Pin
Nitron30-Sep-02 5:32
Nitron30-Sep-02 5:32 
AnswerRe: Write to Excel File ??? Pin
Stephane Rodriguez.30-Sep-02 5:44
Stephane Rodriguez.30-Sep-02 5:44 
GeneralRe: Write to Excel File ??? Pin
Nitron30-Sep-02 6:01
Nitron30-Sep-02 6:01 
AnswerRe: Write to Excel File ??? Pin
TyMatthews30-Sep-02 6:23
TyMatthews30-Sep-02 6:23 
GeneralMultiSelect CFileDialog (Open) Pin
ns30-Sep-02 5:14
ns30-Sep-02 5:14 
GeneralRe: MultiSelect CFileDialog (Open) Pin
Ravi Bhavnani30-Sep-02 5:17
professionalRavi Bhavnani30-Sep-02 5:17 
GeneralRe: MultiSelect CFileDialog (Open) Pin
jmkhael30-Sep-02 5:17
jmkhael30-Sep-02 5:17 
GeneralRe: MultiSelect CFileDialog (Open) Pin
Lakitu30-Sep-02 5:17
Lakitu30-Sep-02 5:17 
GeneralThanks everyone!!! Pin
ns30-Sep-02 5:26
ns30-Sep-02 5:26 
Generalshow text in statusbar Pin
jafrazee30-Sep-02 4:43
jafrazee30-Sep-02 4:43 
GeneralRe: show text in statusbar Pin
Jon Hulatt30-Sep-02 5:09
Jon Hulatt30-Sep-02 5:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.