Results 1 to 7 of 7

Thread: Taskbar && Resize;

  1. #1

    Thread Starter
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I a making an app without MFC using only API.When i minimize the app it doesn't go to the task bar but it stays like an ugly title bar at the bottom of the screen.How can i make it go to the task bar.Also i would like to know how to resize the edit box that is on my dialog when i resize the dialog.What should i do when the WM_SIZE message comes.I want the edit box to be right to the end of the dialog.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    By default, the window should go to the task bar. How are you creating the window?

    And to resize the edit box:
    Code:
    MoveWindow(GetDlgItem(hWnd_Dialogue, IDC_EDIT), 0, 0, width, height, TRUE);
    Replace width and height with the client area size of your dialogue.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    My window is a dialog box called using a DialogBox function:
    Code:
    DialogBox(hThisInst, (LPCTSTR)IDD_DIALOG1, hwnd, (DLGPROC)About);
    It has a min and max button.
    When i minimize the app it doesn't go to the task bar but it stays like an ugly title bar at the bottom of the screen.How can i make it go to the task bar.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Try using MAKEINTRESOURCE(IDD_DIALOG) rather than (LPCTSTR)IDD_DIALOG.

    Other than that...check the settings of the dialogue in the resource editor.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I have changed it to MAKEINTRESOURCE(IDD_DIALOG) but still the same.No sign of my dialog on the title bar.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Last-ditch effort:
    Code:
    DialogBox(hThisInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, (DLGPROC)About);
    Use NULL as the parent window for your dialogue...hopefully it'll go to the task bar now . (John - can we have a crossed-fingers smiley, please?)
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

    Thread Starter
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    BINGO!
    Thanks , Parksie.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

Posting Permissions

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



Click Here to Expand Forum to Full Width