-
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.
-
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.
-
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.
-
Try using MAKEINTRESOURCE(IDD_DIALOG) rather than (LPCTSTR)IDD_DIALOG.
Other than that...check the settings of the dialogue in the resource editor.
-
I have changed it to MAKEINTRESOURCE(IDD_DIALOG) but still the same.No sign of my dialog on the title bar.
-
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?)
-