dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: MrViggy

Search: Search took 0.02 seconds.

  1. Re: [RESOLVED] Calling default in OnNcPaint defore my painting paints over mine?

    Okay, I finally found one solution to my problem (there may be others). Before I do my painting, I can call the default window proc, passing in a nonclient region that is only the menu area:


    ...
  2. Re: Calling default in OnNcPaint defore my painting paints over mine?

    Correct. I'm not, really. The code excludes the client area from the clipping region, so I don't have to worry about "accidentally" drawing in the client region.

    Also, in reading the MSDN, the...
  3. Re: Calling default in OnNcPaint defore my painting paints over mine?

    I tried handling the WM_NCCALCSIZE message, but nothing inside the client area was being painted. I set the rectangles to the coords of the client area.

    I'll give it another shot...

    Thanks!
    ...
  4. Re: Calling default in OnNcPaint defore my painting paints over mine?

    Okay, I've attached an example of what I'm trying to do. Build and run the program, and notice that the menu isn't drawn (until you hover the mouse over it). Comment out the "Default()" calls in my...
  5. Re: Calling default in OnNcPaint defore my painting paints over mine?

    Interesting. From the MSDN:

    Since I'm working in MFC, I don't get the wParam argument for my override (I'm handling NC painting in the "OnNcPaint" function). Any idea on how to get the handle to...
  6. Re: Calling default in OnNcPaint defore my painting paints over mine?

    Hmmm, that doesn't seem to be working. In looking at the bounding box for the update region, it looks like it's in client coords, it doesn't include the nc area. In testing (using ValidateRgn), the...
  7. [RESOLVED] Calling default in OnNcPaint defore my painting paints over mine?

    Okay, this is been bugging me for the past couple of days. I'm overriding OnNcPaint to do my own caption painting (in a dialog box). If I call "Default" before I do my painting, the default caption...
Results 1 to 7 of 7


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)