Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Bitmap image not showing up on windows title bar in windows server 2012 std

$
0
0

I have an application written in VC++ (MFC). Its a legacy app. Recently we were asked to check its compatibility with windows server 2012 std edition. We found some issues and one of those is as follows:

1) We display a BITMAP image on to a CRect object positioned on the app's title bar using Windows.StretchBlt() function. It shows up properly in windows server 2003, win XP and win 7. But doesn't show up in windows server 2012. I am assuming its a windows paint issue because button is there on titlebar as I can click on it and see the expected behavior. But its just not visible.

Here is some technical workflow:

-> This function get called to paint the framwnd-

        CMainFrame::OnNcPaint()

       {

             CMDIFrameWnd::OnNcPaint();

             // here we have code to paint the bitmap

      }

Could anyone here please tell me why the same code is behaving differently in win server 2012? Also if there is any solution for this.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>