I'm not sure is it bug from Gupta or not, but i got the silly window when i use multiline or table windows it's show a black square line at the around. And here is the way to solve the problem.
We can remove it quite simply:
On WM_NCCREATE
Call SetWindowLongA (hWndItem, GWL_STYLE,
GetWindowLongA (hWndItem, GWL_STYLE) | WS_BORDER - WS_BORDER)
For child table windows you'll have to do this "On SAM_Create", because it
seems as if they do not receive a "WM_NCCREATE" message. To get correct
results, you also need to call "SetWindowPos" for child table windows after
changing the window style.
where
WM_NCCREATE = 0x0081
GWL_STYLE = -16
(GWL_EXSTYLE = -20)
WS_BORDER = 0x00800000
all of these constants can be found in "winuser.h" which comes with C++,
1 comment:
Hi.
I tried your code with ctd 2.1 , but doesn't work.
Any ideas.?
I use exactly your code.
Thanks
Esteban
Post a Comment