CWnd: Alternative to ON_WM_NCCALCSIZE (OnNcCalcSize) RRS feed

  • Question

  • Hi there,

    I've been fighting with a strange problem for the past 2 days right now. Today I found a partial solution. Unfortunately I wasn't able to solve the problem on my CE device yet. Our software runs on PC as well as on CE.

    Here comes the constellation. Our software is based on MFC. The GUI consists of a CFrameWnd derived class. Inside this class we have two CWnd derived classes. The problem is. All the windows should come up without any border. I therefore removed all window styles, that could lead into a border. Unfortunately I wasn't able to remove the borders completely. The child windows still retain a small border of 1 px.

    Today I found a solution for the PC side. I use ON_WM_NCCALCSIZE (OnNcCalcSize) in order to extend the client area by 1 px. With the help of that the borders vanish.

    Unfortunately ON_WM_NCCALCSIZE is not supported under CE. Are there any alternatives for doing the task?

    Any help would be appreciated.

    Best regards,

    Wednesday, November 9, 2011 1:52 PM