Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 10th, 2005, 9:27 AM   #1
milksama
Newbie
 
Join Date: Mar 2005
Posts: 1
Rep Power: 0 milksama is on a distinguished road
Question Unable to move dialog after creating

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)&param);

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
milksama is offline   Reply With Quote
Old Mar 11th, 2005, 1:10 PM   #2
Griz803
Newbie
 
Join Date: Jul 2004
Location: Somewhere in them thar hills
Posts: 23
Rep Power: 0 Griz803 is on a distinguished road
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 */
Griz803 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:59 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC