VISUAL C++ QUESTION - PLEASE HELP!!!

I am sorry if this does not really related to NT device driver development.
We are currently having a problem with the following coding and any
pointers/help/advices would be greatly appreciated:

The problem is HOW TO MAKE A MODELESS DIALOG BE RESIZABLE

Resize a MODAL dialog is straightforward. I’ve successfully put a GRID,
LISTBOX, and BUTTONS controls inside a modal dialog and they all can be
moved and
resized with the mouse very easily.

Now with the same technique to put into a MODELESS dialog, it causes and
ASSERT error in Winocc.cpp. A closer look found the error comes from:

ASSERT(::IsWindow(m_hWnd));

Any solutions to this problem is greatly appreciated!

Would some kind soul out there lend us a hand? Many many thanks.

Regards,
Anhlan Nguyen
Houston - Texas


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi There,

  1. Go to MFC mailing list archive and search for “modeless dialog resize”
  2. There is a windows style CS_SIZEABLE or something that should be set in
    ordrer to allow resizing.
  3. If you can’t find it on MFC forum I’ll find it for you, but don’t respond
    to the forum post to me directly (its way off topic here)
    Regards,
    Stas

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Anhlan Nguyen
Sent: Friday, April 27, 2001 6:26 PM
To: NT Developers Interest List
Subject: [ntdev] VISUAL C++ QUESTION - PLEASE HELP!!!

I am sorry if this does not really related to NT device driver development.
We are currently having a problem with the following coding and any
pointers/help/advices would be greatly appreciated:

The problem is HOW TO MAKE A MODELESS DIALOG BE RESIZABLE

Resize a MODAL dialog is straightforward. I’ve successfully put a GRID,
LISTBOX, and BUTTONS controls inside a modal dialog and they all can be
moved and
resized with the mouse very easily.

Now with the same technique to put into a MODELESS dialog, it causes and
ASSERT error in Winocc.cpp. A closer look found the error comes from:

ASSERT(::IsWindow(m_hWnd));

Any solutions to this problem is greatly appreciated!

Would some kind soul out there lend us a hand? Many many thanks.

Regards,
Anhlan Nguyen
Houston - Texas


You are currently subscribed to ntdev as: xxxxx@powernetsys.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Looks like you’re trying to resize your dialog and controls before their
window objects were created and initialized.
BTW: have you called CreateDialogParam for your modeless dialog (or just
Create if you use MFC)?
Anyway, in your resize routine check each HWND using IsWindow() system call
and do the resize of that control only if
this call succeeds (and sooner or later it will :slight_smile:

Hope this helps,

Vladimir

-----Original Message-----
From: Anhlan Nguyen [mailto:xxxxx@pdq.net]
Sent: Friday, April 27, 2001 9:26 AM
To: NT Developers Interest List
Subject: [ntdev] VISUAL C++ QUESTION - PLEASE HELP!!!

I am sorry if this does not really related to NT device driver development.
We are currently having a problem with the following coding and any
pointers/help/advices would be greatly appreciated:

The problem is HOW TO MAKE A MODELESS DIALOG BE RESIZABLE

Resize a MODAL dialog is straightforward. I’ve successfully put a GRID,
LISTBOX, and BUTTONS controls inside a modal dialog and they all can be
moved and
resized with the mouse very easily.

Now with the same technique to put into a MODELESS dialog, it causes and
ASSERT error in Winocc.cpp. A closer look found the error comes from:

ASSERT(::IsWindow(m_hWnd));

Any solutions to this problem is greatly appreciated!

Would some kind soul out there lend us a hand? Many many thanks.

Regards,
Anhlan Nguyen
Houston - Texas


You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

RE: [ntdev] VISUAL C++ QUESTION - PLEASE HELP!!!Hi Vladimir;

Thanks very much for your help. We added a CView in the constructor and we solved the problem. The window handle is ok now. Your help is greatly appreciated.

Best regards,
Anhlan Nguyen

----- Original Message -----
From: Chtchetkine, Vladimir
To: NT Developers Interest List
Sent: Sunday, April 29, 2001 10:48 AM
Subject: [ntdev] RE: VISUAL C++ QUESTION - PLEASE HELP!!!

Looks like you’re trying to resize your dialog and controls before their window objects were created and initialized.
BTW: have you called CreateDialogParam for your modeless dialog (or just Create if you use MFC)?
Anyway, in your resize routine check each HWND using IsWindow() system call and do the resize of that control only if
this call succeeds (and sooner or later it will :slight_smile:

Hope this helps,

Vladimir

-----Original Message-----
From: Anhlan Nguyen [mailto:xxxxx@pdq.net]
Sent: Friday, April 27, 2001 9:26 AM
To: NT Developers Interest List
Subject: [ntdev] VISUAL C++ QUESTION - PLEASE HELP!!!

I am sorry if this does not really related to NT device driver development.
We are currently having a problem with the following coding and any
pointers/help/advices would be greatly appreciated:

The problem is HOW TO MAKE A MODELESS DIALOG BE RESIZABLE

Resize a MODAL dialog is straightforward. I’ve successfully put a GRID,
LISTBOX, and BUTTONS controls inside a modal dialog and they all can be
moved and
resized with the mouse very easily.

Now with the same technique to put into a MODELESS dialog, it causes and
ASSERT error in Winocc.cpp. A closer look found the error comes from:

ASSERT(::IsWindow(m_hWnd));

Any solutions to this problem is greatly appreciated!

Would some kind soul out there lend us a hand? Many many thanks.

Regards,
Anhlan Nguyen
Houston - Texas


You are currently subscribed to ntdev as: xxxxx@Starbase.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com