|
-
Oct 8th, 2000, 12:48 PM
#1
Thread Starter
Frenzied Member
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.
-
Oct 8th, 2000, 04:19 PM
#2
Monday Morning Lunatic
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
-
Oct 9th, 2000, 11:19 AM
#3
Thread Starter
Frenzied Member
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.
-
Oct 9th, 2000, 12:17 PM
#4
Monday Morning Lunatic
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
-
Oct 9th, 2000, 12:37 PM
#5
Thread Starter
Frenzied Member
I have changed it to MAKEINTRESOURCE(IDD_DIALOG) but still the same.No sign of my dialog on the title bar.
-
Oct 9th, 2000, 12:51 PM
#6
Monday Morning Lunatic
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
-
Oct 9th, 2000, 02:11 PM
#7
Thread Starter
Frenzied Member
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
|