Click here to Skip to main content
15,925,781 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get Dialog window to show updated value ? Pin
David Crow29-Mar-04 10:24
David Crow29-Mar-04 10:24 
GeneralPower Management Pin
Alexander M.,29-Mar-04 8:50
Alexander M.,29-Mar-04 8:50 
GeneralRe: Power Management Pin
David Crow29-Mar-04 9:49
David Crow29-Mar-04 9:49 
GeneralRe: Power Management Pin
Neville Franks29-Mar-04 10:52
Neville Franks29-Mar-04 10:52 
GeneralRe: Power Management Pin
Alexander M.,30-Mar-04 7:20
Alexander M.,30-Mar-04 7:20 
GeneralNo Resize Pin
sschilachi29-Mar-04 8:13
sschilachi29-Mar-04 8:13 
GeneralRe: No Resize Pin
Prakash Nadar29-Mar-04 8:26
Prakash Nadar29-Mar-04 8:26 
GeneralRe: No Resize Pin
sschilachi29-Mar-04 8:31
sschilachi29-Mar-04 8:31 
GeneralRe: No Resize Pin
Prakash Nadar29-Mar-04 15:27
Prakash Nadar29-Mar-04 15:27 
GeneralRe: No Resize Pin
David Crow29-Mar-04 8:46
David Crow29-Mar-04 8:46 
GeneralRe: No Resize Pin
Rick York29-Mar-04 14:41
mveRick York29-Mar-04 14:41 
GeneralChange Propertysheet Color Pin
kimiko29-Mar-04 7:20
kimiko29-Mar-04 7:20 
GeneralRe: Change Propertysheet Color Pin
David Crow29-Mar-04 7:57
David Crow29-Mar-04 7:57 
GeneralRe: Change Propertysheet Color Pin
Prakash Nadar29-Mar-04 8:28
Prakash Nadar29-Mar-04 8:28 
Generalusing iterator to count though vector Pin
wadstar29-Mar-04 6:29
wadstar29-Mar-04 6:29 
GeneralRe: using iterator to count though vector Pin
valikac29-Mar-04 6:44
valikac29-Mar-04 6:44 
GeneralRe: using iterator to count though vector Pin
Anonymous29-Mar-04 6:59
Anonymous29-Mar-04 6:59 
GeneralRe: using iterator to count though vector Pin
Antony M Kancidrowski29-Mar-04 7:37
Antony M Kancidrowski29-Mar-04 7:37 
GeneralScroll Bars in Dialog Pin
Rassul Yunussov29-Mar-04 6:24
Rassul Yunussov29-Mar-04 6:24 
GeneralRe: Scroll Bars in Dialog Pin
ohadp29-Mar-04 19:55
ohadp29-Mar-04 19:55 
Hi Rassul,

There's a simple and slightly hacky approach and there's the stanradrd approach. The hacky one is a subset of the normal one.

What you'd usually do, is create a dialog containing your 100 edit-boxes or any other thing you'd like to display. This dialog should have no border/caption/etc.

Now create your normal application dialog, and place a static control over most of it, lets call this a place-holder.

What you'd do now is create the 100-edit-box dialog as a child of this static control. Since window's clips everything, you'll only see the first five. If you 'SetWindowPos' and move the 100-edit-box dialog upwards, it will simulate a scroll downwards. All you have to do is connect this with scroll-bar functions and youre good.

But... this isn't the easiest thing to do, so... You can also create your 100 edit-boxes dynamicaly, and change their positions according to scroll-bar movements (remember it's all clipped so most of them are simply hidden nicely).

Use methods like CWnd::SetScrollInfo, GetScrollPos. Respond to messages like WM_HSCROLL.

Keep in mind that there may be other ways, but the last one is pretty straight-forward.

cheers
GeneralRemoving ding Pin
doctorpi29-Mar-04 6:04
doctorpi29-Mar-04 6:04 
GeneralRe: Removing ding Pin
David Crow29-Mar-04 8:03
David Crow29-Mar-04 8:03 
GeneralRe: Removing ding Pin
Prakash Nadar29-Mar-04 8:31
Prakash Nadar29-Mar-04 8:31 
GeneralRe: Removing ding Pin
doctorpi30-Mar-04 2:29
doctorpi30-Mar-04 2:29 
GeneralLimiting dekstop(maximized windows') size Pin
clayman8729-Mar-04 5:20
clayman8729-Mar-04 5:20 

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.