Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to draw client's controls in WM_PRINTCLIENT Pin
Ryan Binns1-Mar-06 17:09
Ryan Binns1-Mar-06 17:09 
GeneralRe: how to draw client's controls in WM_PRINTCLIENT Pin
BillTPE8-Mar-06 15:24
BillTPE8-Mar-06 15:24 
Questionwhere is __targv defined in a MFC app. Pin
derek71-Mar-06 15:32
derek71-Mar-06 15:32 
Questiongloabal conflict Pin
derek71-Mar-06 14:35
derek71-Mar-06 14:35 
AnswerRe: gloabal conflict Pin
Stephen Hewitt1-Mar-06 15:15
Stephen Hewitt1-Mar-06 15:15 
AnswerRe: gloabal conflict Pin
Bob Stanneveld1-Mar-06 20:41
Bob Stanneveld1-Mar-06 20:41 
QuestionShow different Pictures in a static box Pin
charass1-Mar-06 12:25
charass1-Mar-06 12:25 
AnswerRe: Show different Pictures in a static box Pin
Nibu babu thomas1-Mar-06 17:01
Nibu babu thomas1-Mar-06 17:01 
charass wrote:
Example: I have 3 Pictures: IDB_PIC1, IDB_PIC2, IDB_PIC3...


Make them strings! In the resource editor when naming them surround them with quotes. For eg: "IDB_PIC1"

Now you can get the name of the picture you want based on the global variable like this...

CString picToBeUsed;
picToBeUsed.Format("IDB_PIC%d", g_globalVariable);


Now load the bitmap and place it on the static control.

CBitmap bmp;
bmp.LoadBitmap(picToBeUsed);

m_static.SetBitmap(bmp);


Nibu thomas
Software Developer

GeneralRe: Show different Pictures in a static box Pin
charass2-Mar-06 8:49
charass2-Mar-06 8:49 
GeneralRe: Show different Pictures in a static box Pin
Nibu babu thomas2-Mar-06 16:43
Nibu babu thomas2-Mar-06 16:43 
GeneralRe: Show different Pictures in a static box Pin
charass2-Mar-06 22:38
charass2-Mar-06 22:38 
GeneralRe: Show different Pictures in a static box Pin
Nibu babu thomas2-Mar-06 22:40
Nibu babu thomas2-Mar-06 22:40 
GeneralRe: Show different Pictures in a static box Pin
charass2-Mar-06 22:52
charass2-Mar-06 22:52 
GeneralRe: Show different Pictures in a static box Pin
Nibu babu thomas2-Mar-06 23:46
Nibu babu thomas2-Mar-06 23:46 
QuestionCAB and softreset Pin
Fernando A. Gomez F.1-Mar-06 12:13
Fernando A. Gomez F.1-Mar-06 12:13 
AnswerRe: CAB and softreset Pin
Ryan Binns1-Mar-06 17:11
Ryan Binns1-Mar-06 17:11 
GeneralRe: CAB and softreset Pin
Fernando A. Gomez F.2-Mar-06 3:56
Fernando A. Gomez F.2-Mar-06 3:56 
Questiondisable history Pin
gr8coaster3291-Mar-06 11:13
gr8coaster3291-Mar-06 11:13 
QuestionProblems with an ActiveX/com control Pin
BadKarma1-Mar-06 9:21
BadKarma1-Mar-06 9:21 
AnswerRe: Problems with an ActiveX/com control Pin
Stephen Hewitt1-Mar-06 11:26
Stephen Hewitt1-Mar-06 11:26 
GeneralRe: Problems with an ActiveX/com control Pin
BadKarma1-Mar-06 11:43
BadKarma1-Mar-06 11:43 
GeneralRe: Problems with an ActiveX/com control Pin
Stephen Hewitt1-Mar-06 11:55
Stephen Hewitt1-Mar-06 11:55 
GeneralRe: Problems with an ActiveX/com control Pin
BadKarma1-Mar-06 12:16
BadKarma1-Mar-06 12:16 
Question//lint !e740 Pin
russeller1-Mar-06 9:11
russeller1-Mar-06 9:11 
AnswerRe: //lint !e740 Pin
David Crow1-Mar-06 9:27
David Crow1-Mar-06 9:27 

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.