Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is "Visual Studio (MSI)"? Pin
Vasiliy Baranov31-Mar-04 3:36
Vasiliy Baranov31-Mar-04 3:36 
GeneralWin 32 error Pin
jetournier31-Mar-04 2:55
jetournier31-Mar-04 2:55 
GeneralRe: Win 32 error Pin
Antti Keskinen31-Mar-04 3:26
Antti Keskinen31-Mar-04 3:26 
GeneralRe: Win 32 error Pin
jetournier1-Apr-04 19:35
jetournier1-Apr-04 19:35 
GeneralSetCursor Pin
ns31-Mar-04 2:46
ns31-Mar-04 2:46 
GeneralRe: SetCursor Pin
Antti Keskinen31-Mar-04 3:23
Antti Keskinen31-Mar-04 3:23 
GeneralRe: SetCursor Pin
ns31-Mar-04 3:40
ns31-Mar-04 3:40 
GeneralRe: SetCursor Pin
ns31-Mar-04 4:05
ns31-Mar-04 4:05 
hinst

hIcon3 = ::CreateIcon( hinst // application instance
32, // icon width
32, // icon height
1, // number of XOR planes
1, // number of bits per pixel
ANDmaskIcon, // AND bitmask
XORmaskIcon);

How do I get the hinst in MFC?

I didnt see an MFC version of CreateIcon like there is for DrawIcon which I see can be used like CPaintDC dc
dc.DrawIcon()
thanks

Also I want to be able to get rid of the icon using a button or a leftclick or something. This is happening on a picture in an image box, so if theres no obvious way, I can just reload the picture after the icon isnt needed anymore...

doyou think thats the simplest thing to do? What if I ddidnt have a reloadable picture? How would I get rid of the icon then?

Thanks again..
GeneralRe: SetCursor Pin
Antti Keskinen31-Mar-04 4:49
Antti Keskinen31-Mar-04 4:49 
GeneralRe: SetCursor Pin
ns31-Mar-04 8:51
ns31-Mar-04 8:51 
GeneralProblems with GetMsgProc & WH_GETMESSAGE using SetWindowsHookEx Pin
triptiarora31-Mar-04 1:57
triptiarora31-Mar-04 1:57 
GeneralMenu Bar Color Pin
olis31-Mar-04 0:57
olis31-Mar-04 0:57 
GeneralRe: Menu Bar Color Pin
ohadp31-Mar-04 2:13
ohadp31-Mar-04 2:13 
GeneralFile Property Pin
hb.sapto nugroho31-Mar-04 0:21
hb.sapto nugroho31-Mar-04 0:21 
GeneralRe: File Property Pin
David Crow31-Mar-04 2:07
David Crow31-Mar-04 2:07 
GeneralRe: File Property Pin
hb.sapto nugroho31-Mar-04 3:07
hb.sapto nugroho31-Mar-04 3:07 
GeneralRe: File Property Pin
David Crow31-Mar-04 3:46
David Crow31-Mar-04 3:46 
GeneralRe: File Property Pin
hb.sapto nugroho31-Mar-04 15:52
hb.sapto nugroho31-Mar-04 15:52 
GeneralRe: File Property Pin
David Crow1-Apr-04 3:12
David Crow1-Apr-04 3:12 
QuestionHow to take screenshots Pin
Anonymous30-Mar-04 23:24
Anonymous30-Mar-04 23:24 
AnswerRe: How to take screenshots Pin
Uwe Keim31-Mar-04 1:26
sitebuilderUwe Keim31-Mar-04 1:26 
GeneralRe: How to take screenshots Pin
Alexander M.,31-Mar-04 2:01
Alexander M.,31-Mar-04 2:01 
GeneralRe: How to take screenshots Pin
Prakash Nadar31-Mar-04 5:06
Prakash Nadar31-Mar-04 5:06 
GeneralRe: How to take screenshots Pin
Anonymous31-Mar-04 7:56
Anonymous31-Mar-04 7:56 
AnswerRe: How to take screenshots Pin
David Crow31-Mar-04 2:11
David Crow31-Mar-04 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.