Thursday, July 9, 2009

How i can draw custom window with c++ & win32 API ( NO MFC )?

i used GetWindowDC within WM_NCPAINT But Client area was painted Too.


Please explain , How I can draw custom window .


Thanks .

How i can draw custom window with c++ %26amp; win32 API ( NO MFC )?
Besides WM_NCPAINT, there is also WM_PAINT message.


Windows objects are organized hierarchically. It means, when *parent* window receives WM_PAINT, it automatically draws all *child* windows.


Maybe, you will need to use ModifyStyle function to set WS_CLIPCHILDREN and/or WS_CLIPSIBLINGS parent style.


Sorry, it is a bit difficult to help you without seeing even a small piece of code.


No comments:

Post a Comment