First, sorry for my poor English. But that can't stop me learn.
I want to draw the border and title with a bitmap. My system is windows 7, and turn on Aero theme. But i found i cannot draw border or title bar. Whereas, when I turn off Aero theme, it works. Here are some of my code. I want to know, how can I make it work when turn on Aero theme? Thanks...
bmp.LoadBitmap(IDB_BITMAP7);
bmp.GetBitmap(&bmpInfo);
pOldBmp = dcMemory.SelectObject(&bmp);
x = bmpInfo.bmWidth;
y = bmpInfo.bmHeight;
lrBorderWidth = ( x > m_nFrameWidth+m_nBorderWidth ) ? x : m_nFrameWidth+m_nBorderWidth;
winDC.StretchBlt( 0,m_nCaptionHeight,lrBorderWidth,winRC.Height()-m_nCaptionHeight,&dcMemory,0,0,x,y,SRCCOPY );
winDC.StretchBlt( winRC.Width()-lrBorderWidth,m_nCaptionHeight,lrBorderWidth,
winRC.Height()-m_nCaptionHeight,&dcMemory,0,0,x,y,SRCCOPY);
dcMemory.SelectObject(pOldBmp);
bmp.DeleteObject();