Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,,

m creating a Win32 application , based on dialog box

I want to create an arrow button to expand my dialog box , just like a copy dialog box in windows 7, which has arrow to show more details.



please replay ..
Posted

This is done by resizing the dialog.

Initially when designing the dialog, it is done in full size.
In the OnInitDialog function, use SetWindowPos and specify and smaller value for the cy parameter.
When the button is clicked, call SetWindowPos again with the full value for the cy parameter.
 
Share this answer
 
Comments
perry.p 28-Sep-10 2:50am    
Thanx a lot for help,

I m try to do this,

But please ensure that, i want to hide some controls, while dialog box is in normal mode , when i click on that "arrow button" it show extra options (control) to use in application.

If u provide me an example for this, then it 'll be more help full for me.

thanx a lot, «_Superman_»

parry.
«_Superman_» 28-Sep-10 3:02am    
To show/hide controls you can do GetDlgItem(IDC_CONTROL)->ShowWindow(SW_SHOW/SW_HIDE);
perry.p 28-Sep-10 8:09am    
i want to hide control initially, and showing only when click on more(button),
«_Superman_» 28-Sep-10 8:15am    
You can either view the properties of the control in the dialog template editor and then set the Visible property to False.
Or you can call ShowWindow with SW_HIDE in the WM_INITDIALOG message handler.
I suspect you are thinking of the Task Dialog[^] which allows for displaying a considerable amount of detail for long running processes.
 
Share this answer
 
Comments
perry.p 28-Sep-10 8:06am    
yes, I want to put "show details" on Task Dialog type functionality in my dialog based Win32 application..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900