Hi all,

I am currently designing a user interface for my PPC application (in C++).
It is composed of several dialog boxes.

Do you know how to:
- remove the any button in the top-right of the window? Otherwise, how can I
intercept the cancel or the OK buttons.
- I have created my UI with embedded visual c++ but how can I specify that
the content must be centered in the dialog box?

thanks a lot

RE: Dialog boxes cancel button by djarjar

djarjar
Mon Nov 21 09:05:08 CST 2005

I am using the evc4 designer. How can I define the size of my dialog boxes to
the sizes of the PPC?

"djarjar" wrote:

> Hi all,
>
> I am currently designing a user interface for my PPC application (in C++).
> It is composed of several dialog boxes.
>
> Do you know how to:
> - remove the any button in the top-right of the window? Otherwise, how can I
> intercept the cancel or the OK buttons.
> - I have created my UI with embedded visual c++ but how can I specify that
> the content must be centered in the dialog box?
>
> thanks a lot

Re: Dialog boxes cancel button by r_z_aret

r_z_aret
Mon Nov 21 17:57:06 CST 2005

On Mon, 21 Nov 2005 06:56:09 -0800, "djarjar"
<djarjar@discussions.microsoft.com> wrote:

>Hi all,
>
>I am currently designing a user interface for my PPC application (in C++).
>It is composed of several dialog boxes.
>
>Do you know how to:
>- remove the any button in the top-right of the window? Otherwise, how can I
>intercept the cancel or the OK buttons.
>- I have created my UI with embedded visual c++ but how can I specify that
>the content must be centered in the dialog box?

I just used google (http://groups.google.com/advanced_group_search) to
look up
cancel button
in this newsgroup and got 82 hits. I took a quick look at the first
few and didn't see anything obviously useful. But I do think you will
at least find useful leads if you wade through all 82.

Check the CommandBar_AddAdornment function.

For "big" Windows, the Close button and its relatives (minimize,
restore, etc.) are tied closely to the similar items in the System
menu. So you can hide or show one of these buttons by
disabling/enabling the corresponding menu item. I'm pretty sure the
same is true for at least some Windows CE platforms.


>
>thanks a lot

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Re: Dialog boxes cancel button by djarjar

djarjar
Tue Nov 22 04:25:03 CST 2005

ok, thanks a lot. I will have a look to the google newsgroup.

"r_z_aret@pen_fact.com" wrote:

> On Mon, 21 Nov 2005 06:56:09 -0800, "djarjar"
> <djarjar@discussions.microsoft.com> wrote:
>
> >Hi all,
> >
> >I am currently designing a user interface for my PPC application (in C++).
> >It is composed of several dialog boxes.
> >
> >Do you know how to:
> >- remove the any button in the top-right of the window? Otherwise, how can I
> >intercept the cancel or the OK buttons.
> >- I have created my UI with embedded visual c++ but how can I specify that
> >the content must be centered in the dialog box?
>
> I just used google (http://groups.google.com/advanced_group_search) to
> look up
> cancel button
> in this newsgroup and got 82 hits. I took a quick look at the first
> few and didn't see anything obviously useful. But I do think you will
> at least find useful leads if you wade through all 82.
>
> Check the CommandBar_AddAdornment function.
>
> For "big" Windows, the Close button and its relatives (minimize,
> restore, etc.) are tied closely to the similar items in the System
> menu. So you can hide or show one of these buttons by
> disabling/enabling the corresponding menu item. I'm pretty sure the
> same is true for at least some Windows CE platforms.
>
>
> >
> >thanks a lot
>
> -----------------------------------------
> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>
> Robert E. Zaret, eMVP
> PenFact, Inc.
> 20 Park Plaza, Suite 478
> Boston, MA 02116
> www.penfact.com
>