Creating a dialog box without using a resource file

Hi all,

Does anyone have a sample bit of code that would show me how to create a
dialog box that has one window with a title and an area to write text into.
I do not want to have to press an ok /or retry buttons on the dialog before
it can be removed hence I cannot use messagebox.

Or could I generate my message using messagebox function , in a separate
thread and then from my main thread kill the messagebox off after time x
stop the extra thread.

Thoughts ?

thanks

Robert Fernando
Anite Telecoms Ltd
110 Fleet Road
Fleet
Hampshire GU51 4BL
United Kingdom
Tel: +44 (0) 1252 775200
Fax: +44 (0) 1252 775 321
Email: xxxxx@anitetelecoms.com

Anite Telecoms Limited Registered in England No. 1721900 Registered
Office: 100 Longwater Avenue, GreenPark, Reading, Berkshire RG2 6GP,
United Kingdom


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,

take a look at Platform sdk doc in msdn library
(Platform sdk/ user interface services\Windows user
interface/ windowing/ dialog boxes) . There is some
code regarding this…and I think there is also
sample code on platform sdk which does it.

It’s actually pretty simple.

good luck
johnny

— “Fernando, Robert”
schrieb: > Hi all,
>
> Does anyone have a sample bit of code that would
> show me how to create a
> dialog box that has one window with a title and an
> area to write text into.
> I do not want to have to press an ok /or retry
> buttons on the dialog before
> it can be removed hence I cannot use messagebox.
>
> Or could I generate my message using messagebox
> function , in a separate
> thread and then from my main thread kill the
> messagebox off after time x
> stop the extra thread.
>
> Thoughts ?
>
> thanks
>
> Robert Fernando
> Anite Telecoms Ltd
> 110 Fleet Road
> Fleet
> Hampshire GU51 4BL
> United Kingdom
> Tel: +44 (0) 1252 775200
> Fax: +44 (0) 1252 775 321
> Email: xxxxx@anitetelecoms.com
>
> Anite Telecoms Limited Registered in England No.
> 1721900 Registered
> Office: 100 Longwater Avenue, GreenPark, Reading,
> Berkshire RG2 6GP,
> United Kingdom
>
> —
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.de
> To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

__________________________________________________________________
Do You Yahoo!?
Gesendet von Yahoo! Mail - http://mail.yahoo.de


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

Any reason why a modeless dialog box doesn’t fulfill your needs? Building
and filling a resource structure to pass to DialogBoxIndirect is a pain in
the butt and won’t solve your “not waiting for user input” issue. The issue
is not caused by creating a box from a resource file, it is from creating a
modal box in any manner. There are articles in the MSDN that describes how
to make modeless from with both C and VC++/MFC programs.

On 06/21/01, ““Fernando, Robert” ”
wrote:
> Hi all,
>
> Does anyone have a sample bit of code that would show me how to create a
> dialog box that has one window with a title and an area to write text into.
> I do not want to have to press an ok /or retry buttons on the dialog before
> it can be removed hence I cannot use messagebox.
>
> Or could I generate my message using messagebox function , in a separate
> thread and then from my main thread kill the messagebox off after time x
> stop the extra thread.
>
> Thoughts ?
>
> thanks
>
> Robert Fernando
> Anite Telecoms Ltd
> 110 Fleet Road
> Fleet
> Hampshire GU51 4BL
> United Kingdom
> Tel: +44 (0) 1252 775200
> Fax: +44 (0) 1252 775 321
> Email: xxxxx@anitetelecoms.com
>
> Anite Telecoms Limited Registered in England No. 1721900 Registered
> Office: 100 Longwater Avenue, GreenPark, Reading, Berkshire RG2 6GP,
> United Kingdom
>
> —
> 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


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