Click here to Skip to main content
15,914,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: XP-Style menu in win32 Pin
Graham Bradshaw12-Jul-05 22:03
Graham Bradshaw12-Jul-05 22:03 
GeneralVirtualAlloc at specific address Pin
Blake V. Miller12-Jul-05 18:10
Blake V. Miller12-Jul-05 18:10 
GeneralRe: VirtualAlloc at specific address Pin
Toby Opferman12-Jul-05 19:56
Toby Opferman12-Jul-05 19:56 
GeneralRe: VirtualAlloc at specific address Pin
Blake Miller13-Jul-05 8:06
Blake Miller13-Jul-05 8:06 
GeneralTLS in a static library Pin
Chintoo72312-Jul-05 18:06
Chintoo72312-Jul-05 18:06 
GeneralRe: TLS in a static library Pin
Chintoo72312-Jul-05 18:15
Chintoo72312-Jul-05 18:15 
GeneralRe: TLS in a static library Pin
Magnus Westin13-Jul-05 2:32
Magnus Westin13-Jul-05 2:32 
GeneralBitmap in headcontrol does not work fine in Windows XP style Pin
lisoft12-Jul-05 16:26
lisoft12-Jul-05 16:26 
Hi all:
I have a program using a listctrl to display information from database which can sort the data by left click the headcontrol and then an image represent the sort state will be displayed. Everything works fine except running in Windows XP style. When I drag the column head with sort state image on it, the drag image become a whole black thing with nothing on it instead of the normal drag image with some transparency. This happens only for columns which have the sort state image on.

I use the following steps to set the sort image on the headcontrol:
<br />
    CBitmap *pTempBmp = NULL;<br />
	if( bAsc )<br />
		pTempBmp = &m_bmpArrowUp;  // m_bmpArrowUp is a pre-loaded bitmap object<br />
	else<br />
		pTempBmp = &m_bmpArrowDown;// m_bmpArrowDown is a pre-loaded bitmap object<br />
	<br />
	HD_ITEM Item;	<br />
	Item.mask = HDI_FORMAT;<br />
	GetItem( nCol, &Item );<br />
	Item.mask = HDI_BITMAP | HDI_FORMAT;	<br />
	Item.fmt |= HDF_BITMAP;<br />
	Item.hbm = (HBITMAP)pTempBmp->GetSafeHandle();<br />
	SetItem( nCol, &Item );<br />


So can anybody help me to solve this tiny problem?




Lisoft
Generaltaskbar problem Pin
da^hype12-Jul-05 15:33
da^hype12-Jul-05 15:33 
GeneralRe: How to Insert a number into the Oracle Pin
Christian Graus12-Jul-05 17:33
protectorChristian Graus12-Jul-05 17:33 
Generalgetting yesterday's date Pin
Camron12-Jul-05 9:50
Camron12-Jul-05 9:50 
GeneralRe: getting yesterday's date Pin
Jose Lamas Rios12-Jul-05 10:01
Jose Lamas Rios12-Jul-05 10:01 
GeneralRe: getting yesterday's date Pin
David Crow12-Jul-05 10:09
David Crow12-Jul-05 10:09 
GeneralRe: getting yesterday's date Pin
#realJSOP12-Jul-05 10:13
professional#realJSOP12-Jul-05 10:13 
Generalactivex selft rejistrations Pin
_tasleem12-Jul-05 8:35
_tasleem12-Jul-05 8:35 
GeneralRe: activex selft rejistrations Pin
Aamir Butt12-Jul-05 20:54
Aamir Butt12-Jul-05 20:54 
GeneralRe: activex selft rejistrations Pin
_tasleem13-Jul-05 7:42
_tasleem13-Jul-05 7:42 
GeneralRe: activex selft rejistrations Pin
Aamir Butt13-Jul-05 18:57
Aamir Butt13-Jul-05 18:57 
GeneralRe: activex selft rejistrations Pin
Usman Tasleem Akshaf13-Jul-05 20:22
Usman Tasleem Akshaf13-Jul-05 20:22 
GeneralRe: activex selft rejistrations Pin
Usman Tasleem Akshaf13-Jul-05 20:37
Usman Tasleem Akshaf13-Jul-05 20:37 
GeneralDisplaying text in taskbar status area Pin
venkatesh Madhipatla12-Jul-05 8:19
venkatesh Madhipatla12-Jul-05 8:19 
GeneralRe: Displaying text in taskbar status area Pin
David Crow12-Jul-05 8:26
David Crow12-Jul-05 8:26 
GeneralRe: Displaying text in taskbar status area Pin
venkatesh Madhipatla12-Jul-05 8:41
venkatesh Madhipatla12-Jul-05 8:41 
GeneralRe: Displaying text in taskbar status area Pin
David Crow12-Jul-05 9:54
David Crow12-Jul-05 9:54 
GeneralRe: Displaying text in taskbar status area Pin
venkatesh Madhipatla12-Jul-05 10:09
venkatesh Madhipatla12-Jul-05 10:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.