Click here to Skip to main content
14,936,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to make the heap address(by new) have the same every time the program runs? Pin
Member 1308136920-Nov-19 15:48
MemberMember 1308136920-Nov-19 15:48 
AnswerRe: How to make the heap address(by new) have the same every time the program runs? Pin
CPallini11-Nov-19 22:10
mveCPallini11-Nov-19 22:10 
GeneralRe: How to make the heap address(by new) have the same every time the program runs? Pin
Member 1308136920-Nov-19 15:49
MemberMember 1308136920-Nov-19 15:49 
QuestionRe: How to make the heap address(by new) have the same every time the program runs? Pin
David Crow12-Nov-19 5:46
MemberDavid Crow12-Nov-19 5:46 
AnswerRe: How to make the heap address(by new) have the same every time the program runs? Pin
Member 1308136920-Nov-19 15:56
MemberMember 1308136920-Nov-19 15:56 
AnswerRe: How to make the heap address(by new) have the same every time the program runs? Pin
leon de boer13-Nov-19 2:34
Memberleon de boer13-Nov-19 2:34 
GeneralRe: How to make the heap address(by new) have the same every time the program runs? Pin
Richard MacCutchan13-Nov-19 5:01
mveRichard MacCutchan13-Nov-19 5:01 
QuestionCTreeCtrl item images without CImageList ? Pin
Maximilien30-Oct-19 8:32
MemberMaximilien30-Oct-19 8:32 
Main Question: Is it possible to set a tree item image (CTreeCtrl::SetItemImage) without having to build a CImageList ?

I have to build different images corresponding to the items state and I would like to be able to create the image dynamically (lot of TransparentBlt) instead of having to list and build all the images and add them statically to the image list.

i have a default item image and I TransparentBlt state images on it
for example, an item can have the state1 enabled, and will display the appropriate image representing state1.
an another item can have state1 and state4 and will display an image with the state1 and state4

Now, I have to create the imagelist for all combinations of states at compile time and call the SetItemImage with the image list index.

I'd like to be able to simply call something like:
myTree.SetItemImage( hItem, BuildMyItemImage(hItem ) ); // and that would dynamically build an image depending on the states and just use it.
I'd rather be phishing!

AnswerRe: CTreeCtrl item images without CImageList ? Pin
Richard MacCutchan30-Oct-19 9:42
mveRichard MacCutchan30-Oct-19 9:42 
GeneralRe: CTreeCtrl item images without CImageList ? Pin
Maximilien30-Oct-19 12:04
MemberMaximilien30-Oct-19 12:04 
QuestionFTPS Connection Pin
Paul201324-Oct-19 10:28
MemberPaul201324-Oct-19 10:28 
QuestionRe: FTPS Connection Pin
David Crow29-Oct-19 9:10
MemberDavid Crow29-Oct-19 9:10 
AnswerRe: FTPS Connection Pin
Paul201330-Oct-19 8:25
MemberPaul201330-Oct-19 8:25 
QuestionRe: FTPS Connection Pin
David Crow30-Oct-19 10:17
MemberDavid Crow30-Oct-19 10:17 
AnswerRe: FTPS Connection Pin
Paul201330-Oct-19 11:30
MemberPaul201330-Oct-19 11:30 
Question.bmp and .ico MFC vc++ Pin
Member 1457555624-Oct-19 2:21
MemberMember 1457555624-Oct-19 2:21 
QuestionRe: .bmp and .ico MFC vc++ Pin
David Crow24-Oct-19 2:41
MemberDavid Crow24-Oct-19 2:41 
AnswerRe: .bmp and .ico MFC vc++ Pin
Member 1457555624-Oct-19 2:59
MemberMember 1457555624-Oct-19 2:59 
QuestionRe: .bmp and .ico MFC vc++ Pin
David Crow24-Oct-19 3:17
MemberDavid Crow24-Oct-19 3:17 
AnswerRe: .bmp and .ico MFC vc++ Pin
Member 1457555625-Oct-19 3:23
MemberMember 1457555625-Oct-19 3:23 
GeneralRe: .bmp and .ico MFC vc++ Pin
leon de boer24-Oct-19 15:10
Memberleon de boer24-Oct-19 15:10 
GeneralRe: .bmp and .ico MFC vc++ Pin
Richard MacCutchan24-Oct-19 21:42
mveRichard MacCutchan24-Oct-19 21:42 
GeneralRe: .bmp and .ico MFC vc++ Pin
Victor Nijegorodov24-Oct-19 23:19
MemberVictor Nijegorodov24-Oct-19 23:19 
GeneralRe: .bmp and .ico MFC vc++ Pin
leon de boer25-Oct-19 5:07
Memberleon de boer25-Oct-19 5:07 
AnswerRe: .bmp and .ico MFC vc++ Pin
Richard MacCutchan24-Oct-19 4:05
mveRichard MacCutchan24-Oct-19 4:05 

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.