Click here to Skip to main content
15,908,455 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Switch Statment Pin
Ravi Bhavnani18-Mar-04 6:27
professionalRavi Bhavnani18-Mar-04 6:27 
GeneralRe: Switch Statment Pin
Roger Wright18-Mar-04 7:20
professionalRoger Wright18-Mar-04 7:20 
GeneralRe: Switch Statment Pin
Joel Lucsy18-Mar-04 8:35
Joel Lucsy18-Mar-04 8:35 
GeneralRe: Switch Statment Pin
toxcct18-Mar-04 9:07
toxcct18-Mar-04 9:07 
GeneralRe: Switch Statment Pin
Joel Lucsy18-Mar-04 9:54
Joel Lucsy18-Mar-04 9:54 
GeneralInstall Shield Pin
mohdshiraz18-Mar-04 4:13
mohdshiraz18-Mar-04 4:13 
GeneralRe: Install Shield Pin
Heath Stewart18-Mar-04 4:46
protectorHeath Stewart18-Mar-04 4:46 
Generalctreectrl and its normal image list Pin
Anonymous18-Mar-04 4:07
Anonymous18-Mar-04 4:07 
Hello all I have normal images list that I use to display the CTreeCtrl item normal images
this is the way i set the images of the item.
<br />
m_NormalImageList.Create(IDB_BITMAP_NORMAL, 16, 6, RGB (255,255,255));<br />
smptree.SetImageList(&m_NormalImageList, TVSIL_NORMAL );<br />
<br />
treeStruct.item.pszText = nametoshow;  // tree item label: folder name or file name<br />
treeStruct.item.iImage = File_Or_Folder;  // image side along the label, 1= folder image, 0 = file image<br />
Parent= aTreeCtrl->InsertItem(&treeStruct); // insert to the tree control<br />


they seem to works.. coz all the item has the right images as i wanted them to have.
but the problem is when you click on those images after display, the images are changing.
if you dont' click on the image, it stay the way it is.

for example, c:\tempfolder has the folder image, a.txt has file image, a.zip has zip file image but when I click on folder image which is c:\tempfolder, the image change from the folder to file, when you click again, it change file to zip file image, and you click one more time, it goes back to folder image.. like going entire IDB_BITMAP_NORMAL images list... and it is never stop changing if you dont' stop clicking on the images.

how can i prevent that effect? i want folder name to have always folder image, file name to have file image, zip file to have zip file image. diable to change image to image when you click on it.

thank you
GeneralRe: ctreectrl and its normal image list Pin
Yogurt18-Mar-04 6:06
Yogurt18-Mar-04 6:06 
GeneralDrive in explorer Pin
Peter Liddle18-Mar-04 3:56
Peter Liddle18-Mar-04 3:56 
GeneralRe: Drive in explorer Pin
Peter Liddle18-Mar-04 4:11
Peter Liddle18-Mar-04 4:11 
GeneralRe: Drive in explorer Pin
Michael Dunn18-Mar-04 5:03
sitebuilderMichael Dunn18-Mar-04 5:03 
GeneralAnsi to Unicode string using basic_string Pin
Jim Crafton18-Mar-04 3:23
Jim Crafton18-Mar-04 3:23 
GeneralRe: Ansi to Unicode string using basic_string Pin
Prakash Nadar18-Mar-04 4:43
Prakash Nadar18-Mar-04 4:43 
GeneralRe: Ansi to Unicode string using basic_string Pin
J. Eric Vaughan18-Mar-04 5:04
J. Eric Vaughan18-Mar-04 5:04 
GeneralRe: Ansi to Unicode string using basic_string Pin
Michael Dunn18-Mar-04 5:05
sitebuilderMichael Dunn18-Mar-04 5:05 
GeneralRe: Ansi to Unicode string using basic_string Pin
Jim Crafton18-Mar-04 5:18
Jim Crafton18-Mar-04 5:18 
GeneralSecondary display monitor dimensions win32 Pin
Anonymous18-Mar-04 2:59
Anonymous18-Mar-04 2:59 
GeneralRe: Secondary display monitor dimensions win32 Pin
David Crow18-Mar-04 3:06
David Crow18-Mar-04 3:06 
GeneralSharing child windows Pin
Jason Henderson18-Mar-04 2:57
Jason Henderson18-Mar-04 2:57 
GeneralRe: Sharing child windows Pin
Prakash Nadar18-Mar-04 4:26
Prakash Nadar18-Mar-04 4:26 
GeneralRe: Sharing child windows Pin
Jason Henderson18-Mar-04 9:11
Jason Henderson18-Mar-04 9:11 
GeneralRe: Sharing child windows Pin
Prakash Nadar18-Mar-04 14:27
Prakash Nadar18-Mar-04 14:27 
GeneralHooking Dialup Network calls Pin
Harrold18-Mar-04 2:48
Harrold18-Mar-04 2:48 
GeneralGet memory info Pin
Anonymous18-Mar-04 2:24
Anonymous18-Mar-04 2:24 

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.