Click to See Complete Forum and Search --> : Taskbar && Resize;
Vlatko
Oct 8th, 2000, 12:48 PM
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.
parksie
Oct 8th, 2000, 04:19 PM
By default, the window should go to the task bar. How are you creating the window?
And to resize the edit box:
MoveWindow(GetDlgItem(hWnd_Dialogue, IDC_EDIT), 0, 0, width, height, TRUE);
Replace width and height with the client area size of your dialogue.
Vlatko
Oct 9th, 2000, 11:19 AM
My window is a dialog box called using a DialogBox function:
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.
parksie
Oct 9th, 2000, 12:17 PM
Try using MAKEINTRESOURCE(IDD_DIALOG) rather than (LPCTSTR)IDD_DIALOG.
Other than that...check the settings of the dialogue in the resource editor.
Vlatko
Oct 9th, 2000, 12:37 PM
I have changed it to MAKEINTRESOURCE(IDD_DIALOG) but still the same.No sign of my dialog on the title bar.
parksie
Oct 9th, 2000, 12:51 PM
Last-ditch effort:
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?)
Vlatko
Oct 9th, 2000, 02:11 PM
BINGO!
Thanks , Parksie.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.