Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Nov 2011
    Location
    London
    Posts
    31
    Thanks
    5
    Thanked 1 Time in 1 Post

    Taskbar toolbar with popup window C++

    How can i make a taskbar toolbar that has a popup window when clicked? Sort of like apples itunes toolbar (seen here... http://gilsmethod.wpengine.netdna-cd...ws-taskbar.png).

  • #2
    New Coder crank01's Avatar
    Join Date
    Jan 2011
    Posts
    96
    Thanks
    10
    Thanked 2 Times in 2 Posts
    hey artyboy2011, I believe you could make what apple's itunes have made by hiding the icon, in Visual Studio its simple; ShowIcon False under form properties.

    Then set the windows form to be completely transparent like so:
    Code:
    public:
       void MakeSeeThru()
       {
          frmTransparentForm->Opacity = 1;
       }
    Then you can adjust where you would like the form's start position to be, and since you would like it always on the taskbar you can try this(fiddle around with the location tho:
    Code:
    Form1->Location = Point(900, 900);
    To make your form appear over the taskbar you'll need to set the TopMost property to True. In VS its easy, but u can do:
    Code:
    Form->TopMost = true;
    I hope I helped you I should try writing something like this in C#, I think it'll be interesting to make my own toolbar.
    .............-#-----....../|\......----'-'---.......-#-----.
    ......___ /_______\...//|\\.../_________\.../_______\
    ...../___\.|[]._.[]|....//|\\....|.A./^\.A.|.....|[] _ []|...._.O,_
    .....|"#"|.|..|*|..|...///|\\\...|....|"|....|.....|..|*|..|.....(^).... crank01

  • Users who have thanked crank01 for this post:

    Artyboy2011 (03-01-2012)

  • #3
    New Coder
    Join Date
    Nov 2011
    Location
    London
    Posts
    31
    Thanks
    5
    Thanked 1 Time in 1 Post
    i found a picture of almost exactly what i want. http://www.codeproject.com/KB/shell/...r/Calendar.png.

    any ideas?
    Thanks

  • #4
    New Coder crank01's Avatar
    Join Date
    Jan 2011
    Posts
    96
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Ok then you'll want to add your application's icon to the system tray. There are plenty of tutorials online to do just that, which to my understanding are relatively simple.

    To make your program start as a system tray icon, use the code below:
    Code:
        #include <windows.h>
         
        int main()
        {
        HWND hWnd = GetConsoleWindow();
        ShowWindow(hWnd, SW_MINIMIZE);
        // rest of program goes here
    Now if the above does not work, I've found some valuable links walking you through how to do this

    http://forum.codecall.net/java-tutor...plication.html

    http://www.codeproject.com/Articles/...m-in-the-Syste

    Below is with the use of a VS addon called Qt, which I just found out is pretty interesting. With it you could make a system tray icon simply by using the tutorial below. I don't expect you to use it, but you may find it enticing to use one day:https://qt-project.org/doc/qt-4.8/desktop-systray.html
    .............-#-----....../|\......----'-'---.......-#-----.
    ......___ /_______\...//|\\.../_________\.../_______\
    ...../___\.|[]._.[]|....//|\\....|.A./^\.A.|.....|[] _ []|...._.O,_
    .....|"#"|.|..|*|..|...///|\\\...|....|"|....|.....|..|*|..|.....(^).... crank01


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •