|
My application is like...
I need to get a vertical scroll bar when the size of the dialog increases.this should not increase the size of tab control
is there any way of doing that
|
|
|
|
|
is your dialog size increasing dynamically?
|
|
|
|
|
yes,the dialog size should be increased dynamically.
|
|
|
|
|
hey i will try getting a better solution in while u just make the vertical scroll property true
|
|
|
|
|
ok..I will suggest your a mehtod to this in dialog itself.
Specify the WS_VSROLL style fo the dislog that you added to tab
Create another dialog as the child of the dialog that you add to tab control.
you should put all the control in the second dialog.
So when use clicks on the scroll button, just move the innner dialog up or down
specify the WS_VSROLL style if you want to scroll dialog horizontally
use Setscrollinfo funtion in the begining to set the scroll bar sizes
nave
|
|
|
|
|
Hello Friends,
I also want to use Form view in a Tab Control.
My problem is we have developed the code using From view. And used menu bar for different screens.
Now we got a requirement form client tht they want Tab Controls instead of Menus..
I tried many things but its not working..
Can u tell me whether we can add form view in a Tab Control or not????
Megha
|
|
|
|
|
Just change the form view to CDialog add to the Tab control. If you too want scroll, just try the method I suggested in the previous post.
nave
|
|
|
|
|
thanks for the suggestion....
I have a doubt ..which dialog will be shown to the user initially --the dialog having the scroll bar or the child dialog having all the controls.
If it is the dialog having the vertical scroll bar then the controls will not be shown to the user until the sroll bar is clicked
|
|
|
|
|
you can set which tab should be the default dialog like setDefaultPage(0); if that is there in ur code
|
|
|
|
|
guys please answer my query..
really in need of help
|
|
|
|
|
i have not added a form view in a tab pane but i believe you can add it in the same manner as you add dialog
like
m_oPhoneBook.Create(IDD_PhoneBook);
just creat a private variable of the form view and in place of the dialog id put the form view id
|
|
|
|
|
megha_gharote wrote: guys please answer my query..
didn't I?
Read the thread from the begining...
nave
|
|
|
|
|
both dialog
assume
--outer dialog is the dialog having the the scroll bar style
--innner dialog have the controls
You can create the innner dialog from the OnInitdialog function of the outer dialog.
Also you must set the SetScrollinfo of the outerdialog from this funtion it self.
you must process the WM_HSCROLL and WM_VSCROLL messages and move the inner dialog from this functions.
nave
|
|
|
|
|
thank u guys....
i ll try this out
|
|
|
|
|
hi i have to display the files and folders of a drive in listview control. how to arrange it in tiles form?
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: how to arrange it in tiles form
change the list controls style to LVS_ICON ( if you have the list control in the resource take propertieds of it->Style tab->View->Icon)
nave
|
|
|
|
|
hmm thanks. but when i made the list control size as window size i cant arrange it in tiles form though i added as LVS_ICON.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
call the CListCtrl::Arrange() method after you size the list control.
nave
|
|
|
|
|
yes i got that thanks a lot. how to display the contents of a file while clicking it
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
You mean a behaviour similar to explorer? you can use ShellExecute() for this.
nave
|
|
|
|
|
yes thank u very much
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: hi i have to display the files and folders of a drive in listview control. how to arrange it in tiles form?
create ListView with small icon format
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
i came to know that we can import MS word using MS sdk kit through which we can control the buttons..how it will be possible?With which version of visual studio it will be available?
|
|
|
|
|
Hello everyone,
I heard when define a struct, it is important to make the size of the struct memory aligned.
For example,
<br />
struct foo<br />
{<br />
char p;<br />
char[3] align;<br />
};<br />
<br />
struct goo<br />
{<br />
char p;<br />
};<br />
struct foo is better than struct goo, even if we only use member p.
Allocate 3 bytes to align with memory. But I do not know why make memory aligned is better. Any reasons? (for example, prevent memory from running out?)
thanks in advance,
George
|
|
|
|
|
Putting in your own padding is usually superfluous. The compiler will do it for you, and it will match up the padding to the alignment requirements of the CPU that you are targetting.
|
|
|
|