Overlapping CStatics
-
hi everybody! i would like to make two CStatic controls overlap, that is, i would want one CStatic with either the SS_BITMAP or the SS_ICON properties to be placedo over a SS_BITMAP CStatic. i have tried many combinations, but i just can't get it right! can anybody help? or are there other way's to do it? thanks, eugi www.eugigames.tk
-
hi everybody! i would like to make two CStatic controls overlap, that is, i would want one CStatic with either the SS_BITMAP or the SS_ICON properties to be placedo over a SS_BITMAP CStatic. i have tried many combinations, but i just can't get it right! can anybody help? or are there other way's to do it? thanks, eugi www.eugigames.tk
You will need to ensure the tab order is correct so the "lower" static control draws before the "upper" one. You'll probably also need to give them both the
WS_EX_CLIPSIBLINGS
style, and maybe theWS_EX_TRANSPARENT
style so that they redraw when necessary without stepping on each other.Shog9
I returned and saw under the sun, that the race is not to the swift, nor the battle to the strong...
-
You will need to ensure the tab order is correct so the "lower" static control draws before the "upper" one. You'll probably also need to give them both the
WS_EX_CLIPSIBLINGS
style, and maybe theWS_EX_TRANSPARENT
style so that they redraw when necessary without stepping on each other.Shog9
I returned and saw under the sun, that the race is not to the swift, nor the battle to the strong...
thanks! i'll try it and i'll let you know! ;) www.eugigames.tk