RE: Vista Aero
hi, David, thanks anyway.
i have a try like you said, the code like below
//// below is some codes that only for test.
void CMyScrollBar::DrawScrollBarDC(CDC *pDC)
{
CRect clientRect;
GetClientRect(&clientRect);
pDC.SetStretchBltMode(COLORONCOLOR);
pDC.FillSolidRect(rectClient,RGB(255,0,0));
}
but it does not work yet,
i found some intereting things.
note: the scrollbar in a listbox, the listbox in the combobox control
when i only use the listbox in app. it can work normally.
but when the listbox in the combobox , it does not work.
// below is a snippet about combobox
void CMyComboBox::SubWindow(BOOL bSub)
{
ModifyStyle(0,(CBS_OWNERDRAWFIXED | CBS_HASSTRINGS | CBS_DISABLENOSCROLL |
CBS_SIMPLE ), TRUE);
// m_pListBox is a member variable of CMyComboBox
m_pListBox = new CTPComboLBox();
m_pListBox ->SubclassWindow(this->m_hWnd);
}
thanks once more,
and i hope this can not take too much time of you.
hope your reponse. :)
"John" wrote:
hi guys,
i developed a app using vs2005 and mfc8.0,
but meet various questions in vista when Aero is enabled.
for example: the background display desktop 's after switch,
some controls cant display normally, and so on.
what should i notice when using mfc in vista
thanks in advance