Click here to Skip to main content
15,916,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creation of controls at run time Pin
Sarath C25-Jun-06 23:38
Sarath C25-Jun-06 23:38 
GeneralRe: Creation of controls at run time Pin
Sangeetha Jayaraman26-Jun-06 0:26
Sangeetha Jayaraman26-Jun-06 0:26 
GeneralRe: Creation of controls at run time Pin
Sarath C26-Jun-06 0:54
Sarath C26-Jun-06 0:54 
GeneralRe: Creation of controls at run time Pin
Sangeetha Jayaraman26-Jun-06 1:04
Sangeetha Jayaraman26-Jun-06 1:04 
GeneralRe: Creation of controls at run time Pin
Sarath C26-Jun-06 1:12
Sarath C26-Jun-06 1:12 
GeneralRe: Creation of controls at run time Pin
Sarath C26-Jun-06 1:17
Sarath C26-Jun-06 1:17 
GeneralRe: Creation of controls at run time Pin
Sangeetha Jayaraman26-Jun-06 1:17
Sangeetha Jayaraman26-Jun-06 1:17 
GeneralRe: Creation of controls at run time Pin
Sarath C26-Jun-06 1:48
Sarath C26-Jun-06 1:48 
Dear sangeetha,
I understood your problem. Currently I dont have any time to do a feasibility as you said that is why I have given the path.
You may have to do some work for the dynamic creation of controls and resizing the container window to accomodate new controls.
You can see whether the scrollbar need or not in WM_WINDOWPOSCHANGED Notification or you can have your own calculation on the same. if it bigger than the main window you should enable the scrollbar. you can get whether scrollbar enabled or not from the window style. call GetWindowLong to get the current style and & the result WM_VSCROLL (or the scrollbar you want to check it

Then you can set or remove using ModifyStyle function

e.g if(GetWindowLong(hwnd, GWL_EXSTYLE) & WS_VSCROLL)

1. Hope you understood that you need to dynamically calclate the size of your container
2. Hope you need to place the container in a dialog.
3. Hope you know that scroollbar should enabled or disabled should be calculated according the main window size and container size

You are only needed to work on the 3rd point I have mentioned.
Just google at CP. You will get some inputs for it


SaRath.

"Do Next Thing..."
My Blog | Understanding State Pattern in C++

GeneralRe: Creation of controls at run time Pin
Sangeetha Jayaraman26-Jun-06 1:55
Sangeetha Jayaraman26-Jun-06 1:55 
GeneralRe: Creation of controls at run time Pin
Sarath C26-Jun-06 2:08
Sarath C26-Jun-06 2:08 
Questionhow to set background color to the Dlg?? Pin
mimimimilaw25-Jun-06 22:17
mimimimilaw25-Jun-06 22:17 
AnswerRe: how to set background color to the Dlg?? Pin
lidujun200825-Jun-06 22:30
lidujun200825-Jun-06 22:30 
GeneralRe: how to set background color to the Dlg?? Pin
lidujun200825-Jun-06 22:34
lidujun200825-Jun-06 22:34 
GeneralRe: how to set background color to the Dlg?? [modified] Pin
Viorel.25-Jun-06 22:38
Viorel.25-Jun-06 22:38 
GeneralRe: how to set background color to the Dlg?? Pin
Hamid_RT25-Jun-06 23:00
Hamid_RT25-Jun-06 23:00 
GeneralRe: how to set background color to the Dlg?? Pin
Viorel.25-Jun-06 23:19
Viorel.25-Jun-06 23:19 
AnswerRe: how to set background color to the Dlg?? Pin
Hamid_RT25-Jun-06 22:31
Hamid_RT25-Jun-06 22:31 
GeneralRe: how to set background color to the Dlg?? Pin
Sarath C25-Jun-06 22:49
Sarath C25-Jun-06 22:49 
GeneralRe: how to set background color to the Dlg?? Pin
Hamid_RT25-Jun-06 22:58
Hamid_RT25-Jun-06 22:58 
GeneralRe: how to set background color to the Dlg?? Pin
Sarath C25-Jun-06 23:23
Sarath C25-Jun-06 23:23 
GeneralRe: how to set background color to the Dlg?? Pin
Hamid_RT25-Jun-06 23:36
Hamid_RT25-Jun-06 23:36 
AnswerRe: how to set background color to the Dlg?? Pin
ovidiucucu26-Jun-06 1:43
ovidiucucu26-Jun-06 1:43 
Question"Force file output" option in Visual Studio.NET Pin
dashprasannajit25-Jun-06 22:07
dashprasannajit25-Jun-06 22:07 
AnswerRe: "Force file output" option in Visual Studio.NET Pin
Viorel.25-Jun-06 22:25
Viorel.25-Jun-06 22:25 
Questionregarding FileDialog Pin
happy_ram25-Jun-06 21:32
happy_ram25-Jun-06 21:32 

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.