Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTResizeDialog - Icon in Top Left Corner
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTResizeDialog - Icon in Top Left Corner

 Post Reply Post Reply
Author
Message
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Topic: CXTResizeDialog - Icon in Top Left Corner
    Posted: 29 August 2005 at 6:08pm
I've got a few resizable dialogs in my application. Right now, an ugly little rectagular icon shows up in the top-left corner. I would like to remove the icon (is there some setting in the dialog editor that I missed?!?)  The following image demonstrates the problem.

1) the top part of the image is a dialog from the sample:
Xtreme Toolkit Pro v9.60\Samples\Controls\CheckListBox

2) the bottom part of the image is the behaviour I would like (i.e. no icon in the top left corner). It is taken from:
http://www.codejock.com/products/toolkit/tour_25.asp
but I wasn't able to find this behaviour in any samples.

Thanks for any help

Warren

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2005 at 5:04am

1. All sizable frames have this icon. In Dialog editor instead border - Rezing, set Border - Dialog Frame. No icon, but no resize availaible.

So better change this icon to something: SetIcon(LoadIcon.., FLASE);

2. Try to derive new class from CXTPCustomizeSheet and CXTResize.

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Posted: 30 August 2005 at 10:14am
My initial thoughts for a solution were along the lines of your reply, but I'm still wondering how the screen shot on the following page was created:
http://www.codejock.com/products/toolkit/tour_25.asp

the icon is not present in the customize dialog. Was this done in code, or was the icon removed by re-touching the image after the image was captured

(I'd rather have an honest answer here if the image was altered - I'll admit to "re-touching" some screen shots in a previous job).
Back to Top
Barto View Drop Down
Groupie
Groupie


Joined: 27 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote Barto Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2005 at 6:32am

i just set the properties in the dialog editor to "resizing" instead of dialog frame

then make sure to uncheck "system menu"

Back to Top
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Posted: 31 August 2005 at 1:35pm
>
> then make sure to uncheck "system menu"
>

I tried that one. Unfortunately, that gets rid of the icon in the top left, but it also gets rid of the Big red X in the top-right corner - which I don't want to get rid of.

I'd like all the dialogs to look the same (standard non-resizable dialogs have no icon, but the big X in the top-right).

Warren

Back to Top
aholm View Drop Down
Newbie
Newbie


Joined: 18 April 2005
Location: Finland
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote aholm Quote  Post ReplyReply Direct Link To This Post Posted: 01 September 2005 at 2:12am
I think you will find that the following combination of dialog styles do what you want.

DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME

I usually find it easier to set these by editing the resource file as text.

    /Anders

Back to Top
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Posted: 01 September 2005 at 3:00pm
Anders,

Yes, that combination of styles does the trick (it seems I was missing the DS_MODALFRAME style). However, I've still got a little problem. Do you know how to apply the style in code? since:

1) When I added it to the resource file as text, the setting gets blown away if I make adjustments to any of the properties in the resource editor (it seems like DS_MODALFRAME and WS_THICKFRAME are mutually excusive in "border" property in the Visual Studio editor ?!?).

2) I tried using WS_THICKFRAME in the dialog editor, and inserting a call to ModifyStyle(0, DS_MODALFRAME), in a number of the CWnd/CDialog virtual functions - but the result was that it either didn't remove the icon, or the resizing didn't work.

Warren
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.