Click here to Skip to main content
15,881,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCapturing a Windows event Pin
Grimes1-Jun-06 4:58
Grimes1-Jun-06 4:58 
AnswerRe: Capturing a Windows event Pin
Hamid_RT1-Jun-06 5:58
Hamid_RT1-Jun-06 5:58 
GeneralRe: Capturing a Windows event Pin
Grimes2-Jun-06 9:28
Grimes2-Jun-06 9:28 
QuestionHow to use Tokenize() wid CStrings in VC6 Pin
Cyber Friend1-Jun-06 4:55
Cyber Friend1-Jun-06 4:55 
AnswerRe: How to use Tokenize() wid CStrings in VC6 Pin
Viorel.1-Jun-06 5:21
Viorel.1-Jun-06 5:21 
AnswerRe: How to use Tokenize() wid CStrings in VC6 Pin
Michael Dunn1-Jun-06 6:56
sitebuilderMichael Dunn1-Jun-06 6:56 
AnswerRe: How to use Tokenize() wid CStrings in VC6 Pin
pgibson0077001-Jun-06 10:33
pgibson0077001-Jun-06 10:33 
QuestionFillRect with CBrush question Pin
LukeV1-Jun-06 3:58
LukeV1-Jun-06 3:58 
Hi!

When I call FillRect with a brush created from a bitmap, the rect will get filled but the bitmap is tiled, even though the rect and bitmap size are the same (20 X 20). Is there a reason for that? I thought the bitmap would get displayed correctly!

Screenshot at www.edovia.com/pictures/FillRect.png[^]

<br />
//Draw thumb<br />
    RECT rectThumb;<br />
<br />
    hBitmap = (HBITMAP)LoadImage(NULL, m_szThumb, IMAGE_BITMAP, 0, 0,<br />
		LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE | LR_LOADTRANSPARENT);<br />
<br />
    bitmapThumb.Detach();<br />
    bitmapThumb.Attach( hBitmap );<br />
    bitmapThumb.GetBitmap( &bmp );<br />
<br />
    rectThumb.top       = rectFill.bottom;<br />
    rectThumb.bottom    = rectThumb.top + bmp.bmHeight;<br />
    rectThumb.left      = roundf( ( rectClient.Width() - bmp.bmWidth ) / 2 );<br />
    rectThumb.right     = rectThumb.left + bmp.bmWidth;<br />
<br />
    brush.CreatePatternBrush( &bitmapThumb );<br />
    memDC.FillRect( &rectThumb, &brush );<br />
    brush.DeleteObject();<br />

AnswerRe: FillRect with CBrush question Pin
Viorel.1-Jun-06 4:11
Viorel.1-Jun-06 4:11 
GeneralRe: FillRect with CBrush question Pin
LukeV1-Jun-06 4:37
LukeV1-Jun-06 4:37 
AnswerRe: FillRect with CBrush question Pin
Sarath C1-Jun-06 4:35
Sarath C1-Jun-06 4:35 
QuestionI HATE ADO - newbie Pin
antonaras1-Jun-06 3:47
antonaras1-Jun-06 3:47 
AnswerRe: I HATE ADO - newbie Pin
Viorel.1-Jun-06 3:51
Viorel.1-Jun-06 3:51 
GeneralRe: I HATE ADO - newbie Pin
antonaras1-Jun-06 3:57
antonaras1-Jun-06 3:57 
QuestionSDL in MFC application Pin
Manjunath S1-Jun-06 3:05
Manjunath S1-Jun-06 3:05 
QuestionRe: SDL in MFC application Pin
David Crow1-Jun-06 3:09
David Crow1-Jun-06 3:09 
AnswerRe: SDL in MFC application Pin
Cedric Moonen1-Jun-06 3:14
Cedric Moonen1-Jun-06 3:14 
AnswerRe: SDL in MFC application Pin
toxcct1-Jun-06 3:34
toxcct1-Jun-06 3:34 
GeneralRe: SDL in MFC application Pin
ThatsAlok1-Jun-06 20:20
ThatsAlok1-Jun-06 20:20 
QuestionAny links for books on using SendInput Pin
Ista1-Jun-06 2:57
Ista1-Jun-06 2:57 
QuestionDisable Script Debugging in IE Pin
llp00na1-Jun-06 2:19
llp00na1-Jun-06 2:19 
AnswerRe: Disable Script Debugging in IE Pin
David Crow1-Jun-06 3:16
David Crow1-Jun-06 3:16 
GeneralRe: Disable Script Debugging in IE Pin
llp00na1-Jun-06 3:33
llp00na1-Jun-06 3:33 
Questionset caret position to the end in Edit Box Pin
big_denny_2001-Jun-06 2:15
big_denny_2001-Jun-06 2:15 
AnswerRe: set caret position to the end in Edit Box Pin
toxcct1-Jun-06 2:21
toxcct1-Jun-06 2:21 

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.