How resize a ATL control inside ATL DLL?
COM
3
Posts
2
Posters
0
Views
1
Watching
-
That is how resizing a ATL control inside the ATL server DLL? The detail is: I set a ATL control property with Width and Height and want resize the control according to the two parameters. Please tell me how can I get it? cz
-
Hi have you tried SetWindowPos() ? Hush..Hush.. thought I heard you calling my name now...
Yes, I have do it by SetWindowPos. Just after I call this function, the ATL extenter has been resized(become smaller). But I click in the original rect of the ATL extenter, the ATL become the original size as same as before calling SetWindowPos. In fact I want to call SetWindowRgn to make a irregular ATL control, but I cannot because the same reason as above. Click the ATL, it become back to previous shape. cz