![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 1
Rep Power: 0
![]() |
I'm writing a program that acts as a scheduler. You add appointments which are displayed graphically on the main window. I have a dialog setup to pop out in order for the user to input the appointment information. For some reason though, I am unable to move the dialog. This can be a problem, as any appointments in the middle of the screen will be covered and unviewable while the dialog is open.
I have already tried using different dialog styles and options to no avail. This is the call I make to the dialog window: DialogBoxParam(GetModuleHandle("scheduler-main.exe"),MAKEINTRESOURCE(ID_DIALOG_ADD),hwnd,(DLGPROC)adddlgproc,(LPARAM)¶m);And in my resource file, a snippet from the create dialog parameters: ID_DIALOG_ADD DIALOGEX 20, 20, 227, 138 STYLE DS_SETFOREGROUND | DS_SETFONT | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION CAPTION "Add Item to Scheduler" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN (etc...) Should more code be required to know what is going on, I will gladly supply it. The amount of source code is large and I only wanted to post what was relevant. Thanks in advance for help anyone has to offer. -mike |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Jul 2004
Location: Somewhere in them thar hills
Posts: 23
Rep Power: 0
![]() |
Just at a guess, you'll have to double check the docs, I'd bet that DS_Center is setting the movable property of the dialog box to false by default. Hope that this helps.
__________________
/* Bad command or filename --- go stand in the corner */ |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|