Click here to Skip to main content
16,011,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: function name Pin
Nemanja Trifunovic20-Oct-07 13:00
Nemanja Trifunovic20-Oct-07 13:00 
GeneralRe: function name Pin
mauree20-Oct-07 13:14
mauree20-Oct-07 13:14 
GeneralRe: function name Pin
Nemanja Trifunovic21-Oct-07 2:40
Nemanja Trifunovic21-Oct-07 2:40 
AnswerRe: function name Pin
Nelek21-Oct-07 20:34
protectorNelek21-Oct-07 20:34 
QuestionCScrollSizes problem: [modified] Pin
Hakan Bulut20-Oct-07 8:45
Hakan Bulut20-Oct-07 8:45 
AnswerRe: CScrollSizes problem: Pin
Nelek21-Oct-07 20:36
protectorNelek21-Oct-07 20:36 
GeneralRe: CScrollSizes problem: Pin
Hakan Bulut21-Oct-07 23:35
Hakan Bulut21-Oct-07 23:35 
GeneralRe: CScrollSizes problem: Pin
Nelek22-Oct-07 4:37
protectorNelek22-Oct-07 4:37 
I don't really understand what you want to say. But I try:

If you want your view not having scroll bars, you should put the size of the workspace inside the limits of you frame. If you want to have the scrolls, you give the scroll size bigger than frame space.

I mean:
//in PreCreateWindow(CREATESTRUCT& cs)
cs.cx = 800; cs.cy = 600;

//in your OnInitialUpdate
CSize sizeTotal;
sizeTotal.cx = 785;	sizeTotal.cy = 585;
SetScrollSizes(MM_TEXT, sizeTotal);


should set the workspace without having scrolls. But...

//in PreCreateWindow(CREATESTRUCT& cs)
cs.cx = 800; cs.cy = 600;

//in your OnInitialUpdate
CSize sizeTotal;
sizeTotal.cx = 1600;	sizeTotal.cy = 1200;
SetScrollSizes(MM_TEXT, sizeTotal);


you will have a workspace two times bigger than your frame, so you will have scroll bars

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

GeneralRe: CScrollSizes problem: [modified] Pin
Hakan Bulut22-Oct-07 22:00
Hakan Bulut22-Oct-07 22:00 
GeneralRe: CScrollSizes problem: Pin
Nelek29-Oct-07 21:40
protectorNelek29-Oct-07 21:40 
QuestionAbout network status check on local host Pin
Angelfirefox_20-Oct-07 8:10
Angelfirefox_20-Oct-07 8:10 
AnswerRe: About network status check on local host Pin
Hamid_RT20-Oct-07 19:33
Hamid_RT20-Oct-07 19:33 
Questionwhat do u meen by ....... Pin
NawabSahil20-Oct-07 7:03
NawabSahil20-Oct-07 7:03 
AnswerRe: what do u meen by ....... Pin
Steve Echols20-Oct-07 9:24
Steve Echols20-Oct-07 9:24 
AnswerRe: what do u meen by ....... Pin
Rick York20-Oct-07 19:11
mveRick York20-Oct-07 19:11 
AnswerRe: what do u meen by ....... Pin
Hamid_RT20-Oct-07 19:25
Hamid_RT20-Oct-07 19:25 
QuestionWS_MAXIMIZED problem Pin
Hakan Bulut20-Oct-07 6:06
Hakan Bulut20-Oct-07 6:06 
AnswerRe: WS_MAXIMIZED problem Pin
Nemanja Trifunovic20-Oct-07 6:20
Nemanja Trifunovic20-Oct-07 6:20 
AnswerRe: WS_MAXIMIZED problem Pin
Hakan Bulut20-Oct-07 6:53
Hakan Bulut20-Oct-07 6:53 
GeneralI have an idea,I need a friend of in the same camp Pin
lgbean20-Oct-07 5:48
lgbean20-Oct-07 5:48 
GeneralRe: I have an idea,I need a friend of in the same camp Pin
Hamid_RT20-Oct-07 5:54
Hamid_RT20-Oct-07 5:54 
GeneralRe: I have an idea,I need a friend of in the same camp Pin
lgbean20-Oct-07 6:49
lgbean20-Oct-07 6:49 
GeneralRe: I have an idea,I need a friend of in the same camp Pin
Hamid_RT20-Oct-07 8:41
Hamid_RT20-Oct-07 8:41 
GeneralRe: I have an idea,I need a friend of in the same camp Pin
lgbean21-Oct-07 2:58
lgbean21-Oct-07 2:58 
GeneralRe: I have an idea,I need a friend of in the same camp Pin
Hamid_RT22-Oct-07 3:16
Hamid_RT22-Oct-07 3:16 

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.