News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

ButtonClass

Started by six_L, November 24, 2006, 02:11:18 PM

Previous topic - Next topic

six_L

hello,all
as the following JPG:
why can't the tree be showed in ButtonClassName?


[attachment deleted by admin]
regards

Tedd

Probably drawing order - whichever is drawn last is drawn on-top.
If this is a dialog, you should be able to just define the ButtonClassName first.
No snowflake in an avalanche feels responsible.

six_L

hey,Tedd
Thanks your answer.

the problem is still there. i attached the sourcecode.

[attachment deleted by admin]
regards

Tedd

Remove the WS_CLIPSIBLINGS style from the treeview creation :wink
No snowflake in an avalanche feels responsible.

six_L

hey,Tedd
OK!
thank you very much.
regards

ToutEnMasm


I have recompiled and tested the Tree1_.asm  without changing the code and .........
It work perfectly with ml /Zp4.
Seem to be a problem of alignement.

six_L

hello,ToutEnMasm
thanks your answer.
i know a method of alignement

it can't work perfectly with ml /Zp4 to me. because the line(invoke GroupButton,hWin,S('Dir'),15,5,211,225,GROUPDIR) has been added ";" in sourcecode.
regards

ToutEnMasm


Hello,
More simple like that.It is two childs of the same windows that couldn't have the same place,except if one of them has the WS_EX_TRANSPARENT extended style.
Give this extended style to the GroupButton and there is no more problem

You can also change the parent of the treeview and give it the handle of the groupbox as parent window. In this case,some events of the treeview must be modified.
                                   ToutEnMasm