-
May 15th, 2009, 09:02 PM
#1
Embed Windows programs within Tabs?
Hello
Would it be possible to embed the following Windows Programs/Locations
within tabs?
- Disk Management
- Scheduled Tasks
- System Properties (sysdm.cpl)
- 3 locations in explorer (including 1 UNC Path)
I'm thinking tabs such as Firefox has, with the exit button and
ability to switch between them.
Or even tabs such as MMC have, with a kind of tree-listing on the
left.
Whichever the case, I have no idea how to do this.
Please tell me how I can do this.
Thanks in advance,
Panarchy
-
May 17th, 2009, 06:56 AM
#2
Re: Embed Windows programs within Tabs?
Firefox tabs don't have embed programs in them. Maybe use dlls, though.
This is what it looks like to me: (The last time I looked at firefox source code, I didn't look specifically at the tab control)
The tab control for firefox is probably owner-drawn (WM_DRAWITEM). The Exit button is drawn into each tab control created, and when the exit button is clicked, it tells the tab associated with it to close. I'm not sure exactly where you would process the exit button (a normal button would be through WM_COMMAND. I haven't had the need to process a control that has been drawn into another control. IDK) On selection of a tab, you will have to handle "case TCN_SELCHANGE:" within WM_NOTIFY.
I don't know anything about how to embed programs within a program, but if you know the location of your programs, you can probably have TCN_SELCHANGE get the tab selected, and then use ShellExecute() or CreateProcess() to open the program depending on which tab it is.
Tab control info: http://msdn.microsoft.com/en-us/libr...48(VS.85).aspx
-
May 17th, 2009, 08:32 AM
#3
Re: Embed Windows programs within Tabs?
Thanks.
Very interesting and knowledgeable reply. I'll do research into the different calls you mentioned, before coming back for more questions!!!
Thanks again,
Panarchy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|