Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: String Manipulation Routine Pin
Matthew Faithfull19-Dec-07 23:27
Matthew Faithfull19-Dec-07 23:27 
GeneralRe: String Manipulation Routine Pin
Programm3r20-Dec-07 0:11
Programm3r20-Dec-07 0:11 
GeneralRe: String Manipulation Routine Pin
jhwurmbach19-Dec-07 23:57
jhwurmbach19-Dec-07 23:57 
GeneralRe: String Manipulation Routine Pin
Programm3r20-Dec-07 0:10
Programm3r20-Dec-07 0:10 
QuestionHow to start Application as windows Service? Pin
manish.patel19-Dec-07 21:17
manish.patel19-Dec-07 21:17 
GeneralRe: How to start Application as windows Service? Pin
jhwurmbach19-Dec-07 21:46
jhwurmbach19-Dec-07 21:46 
QuestionHow to Show a picture in SDI Application Pin
santhoshv8419-Dec-07 21:03
santhoshv8419-Dec-07 21:03 
AnswerRe: How to Show a picture in SDI Application Pin
CPallini19-Dec-07 21:59
mveCPallini19-Dec-07 21:59 
for instance (inside OnDraw method of your View class):
...
   CBitmap *pOldBmp, bmp;
   bmp.LoadBitmap(IDB_MY_BITMAP);
   CRect rc;
   GetClientRect(&rc);

   CDC dcMem;
   dcMem.CreateCompatibleDC(pDC);
   pOldBmp = dcMem.SelectObject(&bmp);
   pDC->BitBlt(0,0,rc.right,rc.bottom, &dcMem,0,0,SRCCOPY);
   dcMem.SelectObject(&pOldBmp);
...


Please note: error handling and efficience tuning left to the reader.

Smile | :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.


AnswerRe: How to Show a picture in SDI Application Pin
Hamid_RT20-Dec-07 0:47
Hamid_RT20-Dec-07 0:47 
Questionneed help with c programming link list structure to write to a binary file Pin
neodeaths19-Dec-07 20:27
neodeaths19-Dec-07 20:27 
GeneralRe: need help with c programming link list structure to write to a binary file Pin
chandu00419-Dec-07 21:21
chandu00419-Dec-07 21:21 
GeneralRe: need help with c programming link list structure to write to a binary file Pin
CPallini19-Dec-07 21:37
mveCPallini19-Dec-07 21:37 
GeneralRe: need help with c programming link list structure to write to a binary file Pin
Cedric Moonen19-Dec-07 21:58
Cedric Moonen19-Dec-07 21:58 
GeneralRe: need help with c programming link list structure to write to a binary file Pin
CPallini19-Dec-07 22:03
mveCPallini19-Dec-07 22:03 
GeneralRe: need help with c programming link list structure to write to a binary file Pin
Christian Graus19-Dec-07 22:11
protectorChristian Graus19-Dec-07 22:11 
GeneralDetection of database Pin
tom groezer19-Dec-07 20:24
tom groezer19-Dec-07 20:24 
Questionmy problem about button bitmap Pin
rajneshmalik19-Dec-07 20:13
rajneshmalik19-Dec-07 20:13 
QuestionRe: my problem about button bitmap Pin
David Crow15-Jan-08 3:08
David Crow15-Jan-08 3:08 
QuestionRe: my problem about button bitmap Pin
littleGreenDude4-Feb-08 8:50
littleGreenDude4-Feb-08 8:50 
GeneralRe: my problem about button bitmap Pin
David Crow4-Feb-08 8:56
David Crow4-Feb-08 8:56 
GeneralRe: my problem about button bitmap [modified] Pin
littleGreenDude4-Feb-08 9:07
littleGreenDude4-Feb-08 9:07 
GeneralRe: my problem about button bitmap Pin
David Crow4-Feb-08 10:10
David Crow4-Feb-08 10:10 
QuestionHow to Split a txt file. Pin
santhoshv8419-Dec-07 19:36
santhoshv8419-Dec-07 19:36 
AnswerRe: How to Split a txt file. Pin
CPallini19-Dec-07 21:16
mveCPallini19-Dec-07 21:16 
Generalerror with a /clr option Pin
tasumisra19-Dec-07 18:56
tasumisra19-Dec-07 18:56 

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.