Posted on 1997-05-12
I'm looking for a way to override the OnNcCalcSize member function to only allow my CView derived class (and it's FrameWindow of course!) to be a certain width - XWIDTH. I want to be able to change my resizing values if they are greater than XWIDTH, to equal XWIDTH. What is the best way to do this? I attempted to change the values of lpncsp->rgrc, and then call the default CWnd::OnNcCalcSize() function with very bizarre results... Any suggestions?