Click here to Skip to main content
15,923,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Limiting dekstop(maximized windows') size Pin
valikac29-Mar-04 6:46
valikac29-Mar-04 6:46 
GeneralRe: Limiting dekstop(maximized windows') size Pin
Michael Dunn29-Mar-04 8:30
sitebuilderMichael Dunn29-Mar-04 8:30 
Generalnamespace std Pin
BlackDice29-Mar-04 5:03
BlackDice29-Mar-04 5:03 
GeneralRe: namespace std Pin
Chris Losinger29-Mar-04 5:35
professionalChris Losinger29-Mar-04 5:35 
GeneralRe: namespace std Pin
BlackDice29-Mar-04 5:40
BlackDice29-Mar-04 5:40 
Generalerror C1010 Pin
dadacncn29-Mar-04 4:40
dadacncn29-Mar-04 4:40 
GeneralRe: error C1010 Pin
ohadp29-Mar-04 4:48
ohadp29-Mar-04 4:48 
GeneralRe: error C1010 Pin
dadacncn29-Mar-04 4:51
dadacncn29-Mar-04 4:51 
GeneralWaitForSingleObject - Handle for ShellExecute() Pin
ndalal29-Mar-04 4:38
ndalal29-Mar-04 4:38 
GeneralRe: WaitForSingleObject - Handle for ShellExecute() Pin
basementman29-Mar-04 4:44
basementman29-Mar-04 4:44 
GeneralRe: WaitForSingleObject - Handle for ShellExecute() Pin
ndalal29-Mar-04 4:50
ndalal29-Mar-04 4:50 
GeneralRe: WaitForSingleObject - Handle for ShellExecute() Pin
David Crow29-Mar-04 5:07
David Crow29-Mar-04 5:07 

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.