Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionfunctions in the structure Pin
napoleaninlondon25-Dec-05 21:14
napoleaninlondon25-Dec-05 21:14 
AnswerRe: functions in the structure Pin
khan++25-Dec-05 21:32
khan++25-Dec-05 21:32 
QuestionADODB.Recordset / Oracle / Save / unicode / restore problem Pin
xcavin25-Dec-05 20:33
xcavin25-Dec-05 20:33 
QuestionWho can i get CPU preformance in run time ? Pin
Yanshof25-Dec-05 19:01
Yanshof25-Dec-05 19:01 
AnswerRe: Who can i get CPU preformance in run time ? Pin
khan++25-Dec-05 19:48
khan++25-Dec-05 19:48 
GeneralRe: Who can i get CPU preformance in run time ? Pin
Dudi Avramov25-Dec-05 23:21
Dudi Avramov25-Dec-05 23:21 
QuestionUNDO Move operation in explorer Pin
ragavan25-Dec-05 18:43
ragavan25-Dec-05 18:43 
Questionwindows programming, displaying text Pin
Roy K25-Dec-05 18:41
Roy K25-Dec-05 18:41 
Hello,
I'm working on a project and am making a c++ application thru windows programming. My program creates a window just fine and can display text through the code below...
HDC hdc;
PAINTSTRUCT ps;
HFONT hFont;
hdc = BeginPaint (hWnd, &ps);
hFont = (HFONT) GetStockObject ( SYSTEM_FONT );
SelectObject (hdc, hFont);
SetTextColor (hdc, RGB(0,0,180));
SetBkColor (hdc, RGB(190,180,200));
SetTextAlign (hdc, TA_LEFT);
char *string1;
string1 = new char[20];
lstrcpy (string1, " ");
TextOut (hdc, 10, 10, string1, lstrlen(string1));
EndPaint (hWnd, &ps);

However, I need a way of removing the text that was displayed. This would happen after a button click or something else along those lines. Also, does anyone know an easier way to display text, I think I am jumping through extra hoops when I use the code above. And finally, does anyone know how to make a windowed application run in the background?
Thanks, Roy K.
AnswerRe: windows programming, displaying text Pin
khan++25-Dec-05 22:44
khan++25-Dec-05 22:44 
AnswerRe: windows programming, displaying text Pin
John R. Shaw26-Dec-05 12:43
John R. Shaw26-Dec-05 12:43 
Questionwebbrowser ctrl and memory problem! Pin
Tcpip200525-Dec-05 18:24
Tcpip200525-Dec-05 18:24 
QuestionCould anyone look below code and errors and explain what I have to do Pin
Commoner25-Dec-05 14:03
Commoner25-Dec-05 14:03 
AnswerRe: Could anyone look below code and errors and explain what I have to do Pin
Commoner25-Dec-05 14:04
Commoner25-Dec-05 14:04 
GeneralRe: Could anyone look below code and errors and explain what I have to do Pin
Commoner25-Dec-05 14:31
Commoner25-Dec-05 14:31 
GeneralRe: Could anyone look below code and errors and explain what I have to do Pin
asdfkjsodifuweior25-Dec-05 18:40
asdfkjsodifuweior25-Dec-05 18:40 
GeneralRe: Could anyone look below code and errors and explain what I have to do Pin
asdfkjsodifuweior25-Dec-05 18:40
asdfkjsodifuweior25-Dec-05 18:40 
AnswerRe: Could anyone look below code and errors and explain what I have to do Pin
PJ Arends25-Dec-05 14:34
professionalPJ Arends25-Dec-05 14:34 
Questionadd PATH in VC IDE Pin
LeeeNN25-Dec-05 8:50
LeeeNN25-Dec-05 8:50 
AnswerRe: add PATH in VC IDE Pin
TheGreatAndPowerfulOz25-Dec-05 16:59
TheGreatAndPowerfulOz25-Dec-05 16:59 
AnswerRe: add PATH in VC IDE Pin
vipinasda26-Dec-05 6:23
vipinasda26-Dec-05 6:23 
QuestionCan Win32 Dll loads menu in demand ? Pin
Subash.k25-Dec-05 4:08
Subash.k25-Dec-05 4:08 
AnswerRe: Can Win32 Dll loads menu in demand ? Pin
vipinasda25-Dec-05 4:39
vipinasda25-Dec-05 4:39 
GeneralRe: Can Win32 Dll loads menu in demand ? Pin
Subash.k25-Dec-05 18:42
Subash.k25-Dec-05 18:42 
GeneralRe: Can Win32 Dll loads menu in demand ? Pin
vipinasda26-Dec-05 5:25
vipinasda26-Dec-05 5:25 
GeneralRe: Can Win32 Dll loads menu in demand ? Pin
ThatsAlok26-Dec-05 17:18
ThatsAlok26-Dec-05 17:18 

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.