Thread: can we minimize a dialog based application

  1. #1
    vicky
    Guest

    can we minimize a dialog based application

    hi can we minimize a dialog based application and can anyone please tell me how do i minimize a dialog based application in to the task bar (near the clock)

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    I'm not sure I understand.

    If you want the aplication to show on the task bar you need a window. Register a windows class and create on for the application 1x1 in dimensions, hide this behind the dialog or hide from view (HideWindow(HWND,SW_SHOW or SW_HIDE)).

    In the resource editor (in Dev Studio) select the whole dialog and under styles select 'minimise box'
    or on creation you should specify WS_MINIMIZEBOX
    as one of the flags.

    Is this what you are asking or do you want to know about the system tray (the small area of the task bar near the clock)?

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    4

    SendMessage

    SendMessage(hWnd,WM_SYSCOMMAND,SC_MINIMIZE,0);it can minize dialogwindow to taskbar,but it's a long distance from timer.
    ..........a struct NOTIFYICONDATA is useful.

  4. #4
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,227
    aha! she used "we"! Add one more to the score for Ken! *see post on older board* I told you they said "we"! But noooo, you didn't listen to me! *rants on like this for hours*

  5. #5
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    Check here for how we can do things to the task bar.
    zen

  6. #6
    vicky
    Guest

    Cool

    thanx to all . but am still having probs am not able to define the UINT uCallbackMessage;

    can anyone one if you please define it
    say if i have a function myfunc(wparam,lparam) not how do i define it to work with it.


    thanx once again

  7. #7
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Do you mean this?

    #define MYAPPMSG WM_USER+1001

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dialog
    By vikernes in forum Windows Programming
    Replies: 11
    Last Post: 06-15-2006, 12:38 PM
  2. C Programming 2d Array Question
    By jeev2005 in forum C Programming
    Replies: 3
    Last Post: 04-26-2006, 03:18 PM
  3. make Child Dialog not Popup?
    By Zeusbwr in forum Windows Programming
    Replies: 5
    Last Post: 04-08-2005, 02:42 PM
  4. Add Menu to Dialog Application
    By magic.mike in forum Windows Programming
    Replies: 1
    Last Post: 01-24-2005, 12:29 PM
  5. Add a dialog box to a tab
    By axr0284 in forum Windows Programming
    Replies: 0
    Last Post: 01-10-2005, 08:38 AM