Click here to Skip to main content
15,895,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: TCP/IP stack for windows Pin
rem-c2-Dec-05 4:20
rem-c2-Dec-05 4:20 
QuestionHow to Print a web page Pin
Ankush Mehta2-Dec-05 1:25
Ankush Mehta2-Dec-05 1:25 
AnswerRe: How to Print a web page Pin
peterchen2-Dec-05 2:01
peterchen2-Dec-05 2:01 
GeneralRe: How to Print a web page Pin
Ankush Mehta2-Dec-05 19:42
Ankush Mehta2-Dec-05 19:42 
QuestionRe: How to Print a web page Pin
David Crow2-Dec-05 4:22
David Crow2-Dec-05 4:22 
GeneralRe: How to Print a web page Pin
Ankush Mehta2-Dec-05 19:43
Ankush Mehta2-Dec-05 19:43 
GeneralRe: How to Print a web page Pin
David Crow3-Dec-05 15:01
David Crow3-Dec-05 15:01 
QuestionHow to display a item's image without backgroud color in a CTreeCtrl in MFC? Pin
zhonglin.liang2-Dec-05 0:44
zhonglin.liang2-Dec-05 0:44 
There is an icon ,and I want to set the icon as a item's image without backgroud color in a CTreeCtrl in MFC.
How do I do?
attaching my code:
hIcon=(HICON)LoadImage(NULL,GetIconFromFile ("CLSDFOLD"),IMAGE_ICON,16,16,LR_LOADFROMFILE|LR_DEFAULTSIZE);
iconIndex=m_DeviceImage.Add (hIcon);
HTREEITEM hti1=m_wndDeviceTree.InsertItem
(_T("CATEGORY"),iconIndex,iconIndex,hti);
DestroyIcon(hIcon);

The icon is able to display,but it is black backgroud color.why??
help me
would you write some code?



AnswerRe: How to display a item's image without backgroud color in a CTreeCtrl in MFC? Pin
G Haranadh2-Dec-05 8:08
G Haranadh2-Dec-05 8:08 
GeneralRe: How to display a item's image without backgroud color in a CTreeCtrl in MFC? Pin
zhonglin.liang2-Dec-05 13:01
zhonglin.liang2-Dec-05 13:01 
QuestionMethods & Properties ActiveX in VS 7.1 Pin
sweep1232-Dec-05 0:42
sweep1232-Dec-05 0:42 
QuestionChild frame gets locked after displaying message box Pin
jayshml2-Dec-05 0:20
jayshml2-Dec-05 0:20 
QuestionUndocumented Afx extract sub string fun Pin
2249172-Dec-05 0:16
2249172-Dec-05 0:16 
QuestionRe: Undocumented Afx extract sub string fun Pin
David Crow2-Dec-05 4:29
David Crow2-Dec-05 4:29 
AnswerRe: Undocumented Afx extract sub string fun Pin
2249172-Dec-05 6:15
2249172-Dec-05 6:15 
QuestionDisappearance of System Menu Pin
Super Flanker2-Dec-05 0:15
Super Flanker2-Dec-05 0:15 
QuestionProblem Querying MSysObjects(ms-access table) Pin
Ankush Mehta1-Dec-05 23:33
Ankush Mehta1-Dec-05 23:33 
AnswerRe: Problem Querying MSysObjects(ms-access table) Pin
Rajesh R Subramanian2-Dec-05 1:26
professionalRajesh R Subramanian2-Dec-05 1:26 
GeneralRe: Problem Querying MSysObjects(ms-access table) Pin
Ankush Mehta2-Dec-05 18:20
Ankush Mehta2-Dec-05 18:20 
QuestionWinSock.h problem in TCP/IP Pin
vikas amin1-Dec-05 23:27
vikas amin1-Dec-05 23:27 
AnswerRe: WinSock.h problem in TCP/IP Pin
sunit52-Dec-05 0:03
sunit52-Dec-05 0:03 
AnswerRe: WinSock.h problem in TCP/IP Pin
sunit52-Dec-05 0:28
sunit52-Dec-05 0:28 
GeneralRe: WinSock.h problem in TCP/IP Pin
vikas amin2-Dec-05 2:35
vikas amin2-Dec-05 2:35 
AnswerRe: WinSock.h problem in TCP/IP Pin
Eytukan2-Dec-05 2:10
Eytukan2-Dec-05 2:10 
GeneralRe: WinSock.h problem in TCP/IP Pin
Eytukan2-Dec-05 2:11
Eytukan2-Dec-05 2:11 

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.