Click here to Skip to main content
15,888,590 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to protect files like this? Pin
khan++8-Jul-05 1:21
khan++8-Jul-05 1:21 
GeneralRe: how to protect files like this? Pin
toxcct8-Jul-05 1:27
toxcct8-Jul-05 1:27 
GeneralRe: how to protect files like this? Pin
khan++8-Jul-05 1:54
khan++8-Jul-05 1:54 
AnswerRe: how to protect files like this? Pin
David Crow8-Jul-05 3:46
David Crow8-Jul-05 3:46 
GeneralCView: Change background color Pin
a_du7-Jul-05 22:12
a_du7-Jul-05 22:12 
GeneralRe: CView: Change background color Pin
khan++7-Jul-05 23:56
khan++7-Jul-05 23:56 
GeneralRe: CView: Change background color Pin
Anonymous10-Jul-05 0:13
Anonymous10-Jul-05 0:13 
GeneralRe: CView: Change background color Pin
TuPacMansur7-Jul-10 13:27
TuPacMansur7-Jul-10 13:27 
The following code is one of the ways... You would have to read the GDI to understand by SetBkColor won't work (you have to define a context first b4 u use it)

void CChildView::OnPaint()
{
CPaintDC dc(this); // device context for painting
CRect rect;
GetClientRect(&rect); //Obtain the height/width of the window

CBrush brush = CBrush (RGB (0, 0, 255)); //Create a blue color brush

CBrush *pOldBrush = dc.SelectObject(&brush);
dc.Rectangle(0, 0, rect.Width(), rect.Height()); //Fill the client area with the blue rect

dc.SelectObject(pOldBrush); //restore old brush

}

(http://www.dvrshark.com)
Umer Mansoor

GeneralUpsized database 100x slower in SQLServer Pin
mbaker17-Jul-05 21:46
mbaker17-Jul-05 21:46 
GeneralRe: Upsized database 100x slower in SQLServer Pin
Blake V. Miller8-Jul-05 16:58
Blake V. Miller8-Jul-05 16:58 
GeneralRe: Upsized database 100x slower in SQLServer Pin
Anonymous8-Jul-05 23:12
Anonymous8-Jul-05 23:12 
GeneralRe: Upsized database 100x slower in SQLServer Pin
Blake V. Miller12-Jul-05 17:14
Blake V. Miller12-Jul-05 17:14 
Questionwhich of these is the handle to my windowless app? Pin
awah7-Jul-05 21:45
awah7-Jul-05 21:45 
AnswerRe: which of these is the handle to my windowless app? Pin
khan++7-Jul-05 23:51
khan++7-Jul-05 23:51 
Generalproblem : strtok,strcpy,crashes when garbage strings are handled Pin
awah7-Jul-05 21:37
awah7-Jul-05 21:37 
GeneralRe: problem : strtok,strcpy,crashes when garbage strings are handled Pin
khan++7-Jul-05 23:47
khan++7-Jul-05 23:47 
GeneralRe: problem : strtok,strcpy,crashes when garbage strings are handled Pin
David Crow8-Jul-05 3:52
David Crow8-Jul-05 3:52 
GeneralRe: problem : strtok,strcpy,crashes when garbage strings are handled Pin
John R. Shaw8-Jul-05 9:32
John R. Shaw8-Jul-05 9:32 
Generalmmx help, Privileged instruction exception. Pin
Member 34198917-Jul-05 21:35
Member 34198917-Jul-05 21:35 
GeneralRe: mmx help, Privileged instruction exception. Pin
Member 34198917-Jul-05 22:52
Member 34198917-Jul-05 22:52 
QuestionIs it possible to replace tab buttons in the tab control by a bitmap? Pin
Asha Udupa7-Jul-05 20:48
Asha Udupa7-Jul-05 20:48 
AnswerRe: Is it possible to replace tab buttons in the tab control by a bitmap? Pin
ThatsAlok7-Jul-05 21:38
ThatsAlok7-Jul-05 21:38 
QuestionProblem about Drag in TreeCtrl? Pin
sharkmouse7-Jul-05 19:44
sharkmouse7-Jul-05 19:44 
AnswerRe: Problem about Drag in TreeCtrl? Pin
Nilesh K.7-Jul-05 20:15
Nilesh K.7-Jul-05 20:15 
GeneralUNICODE Pin
John R. Shaw7-Jul-05 17:17
John R. Shaw7-Jul-05 17:17 

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.