From: Brett Ryan on 19 Feb 2007 03:50 Thanks, though the unfortunate thing about hiding the task-bar is that I loose the application button (Ok, X... and current window name), how can I recreate a new task-bar with simply just the window title and the application button, I'm able to manually paint in this area, though how do I receive events for the window changing and what sort of button I should display?
From: r_z_aret on 20 Feb 2007 16:38 On Mon, 19 Feb 2007 00:50:25 -0800, Brett Ryan <BrettRyan(a)discussions.microsoft.com> wrote: >Thanks, though the unfortunate thing about hiding the task-bar is that I >loose the application button (Ok, X... and current window name), how can I >recreate a new task-bar with simply just the window title and the application >button, I'm able to manually paint in this area, though how do I receive >events for the window changing and what sort of button I should display? I add my own pushbutton. One welcome side effect is that I can call it "Exit" and it can _really_ shut down the application. Another option is to use a menu item. You could replace the Title with static text. ----------------------------------------- To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message). Robert E. Zaret, eMVP PenFact, Inc. 20 Park Plaza, Suite 478 Boston, MA 02116 www.penfact.com
From: Brett Ryan on 24 Feb 2007 07:50 Fantastic, that would do fine. How do you go about wiring up the new buttons you have created? How do you detect when the current application has changed, or when a new form within the current window has opened to be able to alter the buttons you have shown?
From: r_z_aret on 27 Feb 2007 12:52 On Sat, 24 Feb 2007 04:50:03 -0800, Brett Ryan <BrettRyan(a)discussions.microsoft.com> wrote: >Fantastic, that would do fine. How do you go about wiring up the new buttons >you have created? Same way I support any other button. I developed my own framework (C/C++ and Win32) that subclasses pushbuttons. > How do you detect when the current application has changed, >or when a new form within the current window has opened to be able to alter >the buttons you have shown? I don't understand this question. But in this thread, I only mentioned an "Exit" button, and that would likely have the same label and function for all applications. More generally, I use SetWindowText to change the labels on buttons. And when I have buttons with multiple functions, I use various pieces of info to determine appropriate label and function as a program runs. > ----------------------------------------- To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message). Robert E. Zaret, eMVP PenFact, Inc. 20 Park Plaza, Suite 478 Boston, MA 02116 www.penfact.com
First
|
Prev
|
Pages: 1 2 Prev: Did you find the sample code Next: CAB File Installation onto Devices |