Print Page | Close Window

CXTResizeDialog - Icon in Top Left Corner

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2809
Printed Date: 08 November 2025 at 9:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTResizeDialog - Icon in Top Left Corner
Posted By: Warren
Subject: CXTResizeDialog - Icon in Top Left Corner
Date 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 - 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




Replies:
Posted By: Oleg
Date 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


Posted By: Warren
Date 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 - 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).


Posted By: Barto
Date 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"



Posted By: Warren
Date 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



Posted By: aholm
Date 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



Posted By: Warren
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net