Click here to Skip to main content
15,897,704 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Leak Pin
BarryPearlman23-Oct-09 15:12
BarryPearlman23-Oct-09 15:12 
Questionint treated as binary no. Pin
Manmohan2923-Oct-09 10:41
Manmohan2923-Oct-09 10:41 
AnswerRe: int treated as binary no. Pin
David Crow23-Oct-09 10:45
David Crow23-Oct-09 10:45 
GeneralRe: int treated as binary no. Pin
Manmohan2923-Oct-09 10:58
Manmohan2923-Oct-09 10:58 
AnswerRe: int treated as binary no. Pin
David Crow23-Oct-09 11:04
David Crow23-Oct-09 11:04 
GeneralRe: int treated as binary no. Pin
Manmohan2923-Oct-09 11:16
Manmohan2923-Oct-09 11:16 
GeneralRe: int treated as binary no. Pin
David Crow23-Oct-09 15:08
David Crow23-Oct-09 15:08 
QuestionScrollbars are shown incorrectly. Pin
Nikz223-Oct-09 10:01
Nikz223-Oct-09 10:01 
Hi. Well... I have a trouble with scrollbars. In my (developer) computer it all looks great! BUT in any other computer it looks incorrectly. The first time, when i create the window scrollbars are painted on the border of the dialog instead of the inside of the window. And when i resize it, it repaints the window correctly with the scrollbars inside.

This i wrote in OnCreate

this->EnableScrollBar(SB_VERT);
this->EnableScrollBar(SB_HORZ);


And this is at OnInit

this->SetScrollRange(SB_HORZ,0,2*STARTPIXELX+MAPSQUARE*FIELDSIZE);
this->SetScrollRange(SB_VERT,0,2*STARTPIXELY+MAPSQUARE*FIELDSIZE);

SCROLLINFO info;
info.cbSize = sizeof(info);
    info.fMask = SIF_ALL | SIF_DISABLENOSCROLL;     //SIF_ALL
    info.nMin = 0;
    info.nMax = 2*STARTPIXELY+MAPSQUARE*FIELDSIZE;
    CRect rr;
    this->GetClientRect(&rr);
    info.nPage = rr.bottom-rr.top;
    info.nPos = 0;
    info.nTrackPos = 0;
    SetScrollInfo(SB_VERT,&info);
    info.nPage = rr.right-rr.left;
    info.nMax = 2*STARTPIXELX+MAPSQUARE*FIELDSIZE;
    SetScrollInfo(SB_HORZ,&info);
this->ShowScrollBar(SB_VERT);
this->ShowScrollBar(SB_HORZ);


My dialog has application window, Overlapped, resizing border styles. Pls help!
AnswerRe: Scrollbars are shown incorrectly. [modified] Pin
Nikz223-Oct-09 12:17
Nikz223-Oct-09 12:17 
GeneralRe: Scrollbars are shown incorrectly. Pin
«_Superman_»23-Oct-09 12:31
professional«_Superman_»23-Oct-09 12:31 
GeneralRe: Scrollbars are shown incorrectly. Pin
Nikz223-Oct-09 12:53
Nikz223-Oct-09 12:53 
GeneralRe: Scrollbars are shown incorrectly. Pin
«_Superman_»23-Oct-09 13:01
professional«_Superman_»23-Oct-09 13:01 
GeneralSolution Pin
Nikz223-Oct-09 14:07
Nikz223-Oct-09 14:07 
GeneralRe: Scrollbars are shown incorrectly. Pin
«_Superman_»23-Oct-09 14:15
professional«_Superman_»23-Oct-09 14:15 
QuestionLooking for Mathematical Expressions Evaluator Pin
Tony Teveris23-Oct-09 9:25
Tony Teveris23-Oct-09 9:25 
AnswerRe: Looking for Mathematical Expressions Evaluator Pin
David Crow23-Oct-09 9:33
David Crow23-Oct-09 9:33 
QuestionWho has the file opened? Pin
Peter Weyzen23-Oct-09 9:11
Peter Weyzen23-Oct-09 9:11 
QuestionRe: Who has the file opened? Pin
David Crow23-Oct-09 9:34
David Crow23-Oct-09 9:34 
AnswerRe: Who has the file opened? Pin
Peter Weyzen23-Oct-09 10:19
Peter Weyzen23-Oct-09 10:19 
GeneralRe: Who has the file opened? Pin
David Crow23-Oct-09 10:22
David Crow23-Oct-09 10:22 
QuestionProperty Sheet OnOK only calls property page1 OnOK override? [modified] Pin
al250023-Oct-09 8:19
al250023-Oct-09 8:19 
AnswerRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 9:26
al250023-Oct-09 9:26 
AnswerRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
David Crow23-Oct-09 9:51
David Crow23-Oct-09 9:51 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
al250023-Oct-09 11:56
al250023-Oct-09 11:56 
GeneralRe: Property Sheet OnOK only calls property page1 OnOK override? Pin
David Crow23-Oct-09 14:52
David Crow23-Oct-09 14:52 

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.