Click here to Skip to main content
15,891,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Incrementing a Variable Pin
cgb1437-Aug-08 10:18
cgb1437-Aug-08 10:18 
GeneralRe: Incrementing a Variable Pin
Perspx7-Aug-08 10:22
Perspx7-Aug-08 10:22 
AnswerRe: Incrementing a Variable Pin
Nelek7-Aug-08 22:44
protectorNelek7-Aug-08 22:44 
Question[Win CE/Pocket PC]How to load an gif image on to a Button Pin
madyastha7-Aug-08 2:32
madyastha7-Aug-08 2:32 
AnswerRe: [Win CE/Pocket PC]How to load an gif image on to a Button Pin
David Crow7-Aug-08 2:53
David Crow7-Aug-08 2:53 
GeneralRe: [Win CE/Pocket PC]How to load an gif image on to a Button Pin
madyastha7-Aug-08 3:34
madyastha7-Aug-08 3:34 
QuestionRe: [Win CE/Pocket PC]How to load an gif image on to a Button Pin
David Crow7-Aug-08 3:41
David Crow7-Aug-08 3:41 
AnswerRe: [Win CE/Pocket PC]How to load an gif image on to a Button Pin
madyastha7-Aug-08 18:41
madyastha7-Aug-08 18:41 
Hi...
Is this is correct way of using CImage & its functions?
Because using this also I was not able to load image.


HBITMAP hBitmap = NULL;
hBitmap = SHLoadImageFile(TEXT("windows\\dlrbtn_up_land.gif")); //this returns a valid handle.

CRect tr;
m_btnSeven.GetClientRect(&tr);//Button on which i have to load image

HDC hdc;
hdc = ::GetDC(m_hWnd);//gets HDC.

CImage cImage;
cImage.Attach(hBitmap);//Attach the HBITMAP to CImage object

cImage.Draw(hdc,tr);//Draw the image

GeneralRe: [Win CE/Pocket PC]How to load an gif image on to a Button Pin
madyastha7-Aug-08 22:41
madyastha7-Aug-08 22:41 
Questionmaking DWORD registry enteries Pin
VCProgrammer7-Aug-08 2:30
VCProgrammer7-Aug-08 2:30 
AnswerRe: making DWORD registry enteries Pin
SandipG 7-Aug-08 2:37
SandipG 7-Aug-08 2:37 
GeneralRe: making DWORD registry enteries Pin
VCProgrammer7-Aug-08 2:41
VCProgrammer7-Aug-08 2:41 
GeneralRe: making DWORD registry enteries Pin
SandipG 7-Aug-08 2:50
SandipG 7-Aug-08 2:50 
GeneralRe: making DWORD registry enteries Pin
VCProgrammer7-Aug-08 2:56
VCProgrammer7-Aug-08 2:56 
GeneralRe: making DWORD registry enteries Pin
David Crow7-Aug-08 3:02
David Crow7-Aug-08 3:02 
AnswerRe: making DWORD registry enteries Pin
Hamid_RT7-Aug-08 23:24
Hamid_RT7-Aug-08 23:24 
QuestionThread Pin
shakumar_227-Aug-08 2:08
shakumar_227-Aug-08 2:08 
AnswerRe: Thread Pin
Cedric Moonen7-Aug-08 2:24
Cedric Moonen7-Aug-08 2:24 
GeneralRe: Thread Pin
shakumar_227-Aug-08 2:36
shakumar_227-Aug-08 2:36 
GeneralRe: Thread Pin
Cedric Moonen7-Aug-08 2:41
Cedric Moonen7-Aug-08 2:41 
GeneralRe: Thread Pin
shaibee7-Aug-08 5:14
shaibee7-Aug-08 5:14 
QuestionRe: Thread Pin
David Crow7-Aug-08 3:05
David Crow7-Aug-08 3:05 
QuestionMaximize button Pin
hari_honey7-Aug-08 2:01
hari_honey7-Aug-08 2:01 
AnswerRe: Maximize button Pin
Perspx7-Aug-08 2:25
Perspx7-Aug-08 2:25 
AnswerRe: Maximize button Pin
David Crow7-Aug-08 3:07
David Crow7-Aug-08 3:07 

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.