question

drjackool-3839 avatar image
0 Votes"
drjackool-3839 asked RLWA32-6355 commented

Static control displays 16x16 icon as 32x32 if created at design time???

Hi
Visual C++ dialog designer
All question in title, How solve this problem? I have problem to design and arrange the controls because the static icon is not displayed on 16x16 and overllaped it's right static text.
Thanks

c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RLWA32-6355 avatar image
0 Votes"
RLWA32-6355 answered RLWA32-6355 commented

If you want to use the actual size of the icon then the static control should have the SS_REALSIZEIMAGE style. Or is the problem related to the view in the Dialog Editor?


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

> Or is the problem related to the view in the Dialog Editor?

It seems to be the problem : I did some tests (Win32, not MFC, VS 2019, Windows 10 1909) and I cannot display the right 16*16 icon in the Dialog Editor, although it is displayed correctly at run-rime (I tried to modify the .RC...):

125519-icon-design-runtime.jpg


1 Vote 1 ·

Its a bit awkward but a placeholder control (static) could be used in the dialog editor for positioning and at runtime when handling WM_INITDIALOG reposition the icon and delete the placeholder.

125623-static.png


0 Votes 0 ·
static.png (11.2 KiB)
drjackool-3839 avatar image
0 Votes"
drjackool-3839 answered RLWA32-6355 commented

Visual Studio (C++) dialog editor is very weak! Please send feed back

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You can send your own feedback concerning visual studio from within the IDE.

0 Votes 0 ·