Click here to Skip to main content
15,925,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: program Pin
Maximilien11-Nov-09 3:12
Maximilien11-Nov-09 3:12 
AnswerRe: program Pin
Krischu11-Nov-09 3:21
Krischu11-Nov-09 3:21 
AnswerRe: program Pin
MindCoder7912-Nov-09 19:45
MindCoder7912-Nov-09 19:45 
Questionhow to using the bmp pic of the resource to fill a rectangle? Pin
kk_Kevin11-Nov-09 2:31
kk_Kevin11-Nov-09 2:31 
I write some code, but can't get result.

 Bitmap* pBitmap = new Bitmap(L"bitmap1.bmp");<br />
<br />
    TextureBrush* pTextureBrush = new TextureBrush(pBitmap);<br />
<br />
    graphics.FillRectangle(pTextureBrush, 50,300,200,80);


or

CString str = _T("N00.bmp");

    int strLen = 0;

    strLen =str.GetLength();

    WCHAR* ch = new WCHAR[strLen];

    wcscpy(ch, CT2CW(str)); 

    Bitmap* pBitmap = new Bitmap(ch);

    TextureBrush* pTextureBrush = new TextureBrush(pBitmap);

    graphics.FillRectangle(pTextureBrush, 50,300,200,80);

QuestionRe: how to using the bmp pic of the resource to fill a rectangle? Pin
David Crow11-Nov-09 3:25
David Crow11-Nov-09 3:25 
AnswerRe: how to using the bmp pic of the resource to fill a rectangle? Pin
kk_Kevin11-Nov-09 19:47
kk_Kevin11-Nov-09 19:47 
QuestionRe: how to using the bmp pic of the resource to fill a rectangle? Pin
David Crow12-Nov-09 3:07
David Crow12-Nov-09 3:07 
AnswerRe: how to using the bmp pic of the resource to fill a rectangle? [modified] Pin
kk_Kevin11-Nov-09 21:00
kk_Kevin11-Nov-09 21:00 
QuestionRe: how to using the bmp pic of the resource to fill a rectangle? Pin
David Crow12-Nov-09 3:09
David Crow12-Nov-09 3:09 
AnswerRe: how to using the bmp pic of the resource to fill a rectangle? Pin
Covean11-Nov-09 3:31
Covean11-Nov-09 3:31 
GeneralRe: how to using the bmp pic of the resource to fill a rectangle? Pin
kk_Kevin11-Nov-09 19:49
kk_Kevin11-Nov-09 19:49 
QuestionRe: how to using the bmp pic of the resource to fill a rectangle? Pin
David Crow12-Nov-09 3:10
David Crow12-Nov-09 3:10 
QuestionProcess Termination waiting for Event - Win32 Pin
Krischu11-Nov-09 1:08
Krischu11-Nov-09 1:08 
AnswerRe: Process Termination waiting for Event - Win32 Pin
Covean11-Nov-09 1:27
Covean11-Nov-09 1:27 
GeneralRe: Process Termination waiting for Event - Win32 [modified] Pin
Krischu11-Nov-09 2:35
Krischu11-Nov-09 2:35 
GeneralRe: Process Termination waiting for Event - Win32 Pin
Covean11-Nov-09 3:03
Covean11-Nov-09 3:03 
GeneralRe: Process Termination waiting for Event - Win32 [modified] Pin
Krischu11-Nov-09 3:43
Krischu11-Nov-09 3:43 
GeneralRe: Process Termination waiting for Event - Win32 Pin
Covean11-Nov-09 4:01
Covean11-Nov-09 4:01 
QuestionChanging _MBCS to _UNICODE create problem Pin
m_mun11-Nov-09 0:51
m_mun11-Nov-09 0:51 
AnswerRe: Changing _MBCS to _UNICODE create problem Pin
MsmVc11-Nov-09 1:06
MsmVc11-Nov-09 1:06 
GeneralRe: Changing _MBCS to _UNICODE create problem Pin
m_mun11-Nov-09 2:01
m_mun11-Nov-09 2:01 
GeneralRe: Changing _MBCS to _UNICODE create problem Pin
Richard MacCutchan11-Nov-09 2:48
mveRichard MacCutchan11-Nov-09 2:48 
QuestionRe: Changing _MBCS to _UNICODE create problem Pin
22491711-Nov-09 6:23
22491711-Nov-09 6:23 
AnswerRe: Changing _MBCS to _UNICODE create problem Pin
Randor 11-Nov-09 9:49
professional Randor 11-Nov-09 9:49 
QuestionAfterCalculate is missing in Excel.tli, version: Office 2003 Pin
KTTransfer11-Nov-09 0:35
KTTransfer11-Nov-09 0:35 

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.