Click here to Skip to main content
16,018,418 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi All

I am going to develop my own window where I'll have my own Caption Buttons (Minimize, Maximize, Restore and Close) and all the properties related to these buttons and can add any control at the title position of the window.

Suggest me the way how I'll proceed for it please......

Thanks in advance



Update:
Hi first of all I apologies for my late response and Thanks a lot for your active responses. Actually I want to develop a windows application which will be very similar to Google Chrome web browser and in that application, I'll place a Tab Control within my Customized Window. I need to know how to go for a custom template of a window…
Posted
Updated 11-Nov-10 23:32pm
v4
Comments
Henry Minute 10-Nov-10 8:52am    
What have you tried so far?
fjdiewornncalwe 10-Nov-10 18:43pm    
Could you clarify a bit for us why you would want to do this?
Pete O'Hanlon 12-Nov-10 8:15am    
You seem to be a bit trigger happy with the downvotes. Nobody is going to give you all the stuff you need to do here.

Apurva3633 wrote:
At least tell me by using this(Windows Controls) how can I make a Control template for my customize window, if u have any sample then please refer it to me. -


I'm not sure what you mean by this. You need to look at the standard window controls and select the one(s) that will do what you need in your application. If there is not a standard window for some aspect of the application then you need to create it yourself.

Start with a simple window (i.e. no specialised features) which will act as your frame window. Add child window(s) as necessary to provide the features you want in your application. For example, to provide a window that shows a list of some sort you would add a List View[^]. If you want tabbed windows then add a Tab[^] control. Continue on until your application is complete.
 
Share this answer
 
Comments
Pete O'Hanlon 12-Nov-10 9:17am    
Good answer. You've got my 5.
Set your window WindowStyle to None, and then take over the drawing yourself. I have a sample here[^] that demonstrates how to accomplish this.
 
Share this answer
 
Try some of the CodeProject articles, look at Windows Controls[^] in MSDN, try searching Google, etc. You are asking for a huge amount of information in one question, so it is impossible to give a more specific answer.
 
Share this answer
 
Comments
Basnta Padhi 12-Nov-10 8:11am    
At least tell me by using this(Windows Controls) how can I make a Control template for my customize window, if u have any sample then please refer it to me.
Pete O'Hanlon 12-Nov-10 9:18am    
Have a 5 to balance his univote out.

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