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

C / C++ / MFC

 
AnswerRe: using database in project Pin
_AnsHUMAN_ 13-Apr-09 22:57
_AnsHUMAN_ 13-Apr-09 22:57 
QuestionHow to update the title bar of a window with C & Win32 APIs only? Pin
mr2_9313-Apr-09 22:48
mr2_9313-Apr-09 22:48 
AnswerRe: How to update the title bar of a window with C & Win32 APIs only? Pin
Hamid_RT13-Apr-09 23:46
Hamid_RT13-Apr-09 23:46 
GeneralRe: How to update the title bar of a window with C & Win32 APIs only? Pin
mr2_9313-Apr-09 23:59
mr2_9313-Apr-09 23:59 
QuestionThe background window of CMainFrame Pin
prithaa13-Apr-09 22:29
prithaa13-Apr-09 22:29 
AnswerRe: The background window of CMainFrame Pin
Iain Clarke, Warrior Programmer14-Apr-09 3:38
Iain Clarke, Warrior Programmer14-Apr-09 3:38 
GeneralRe: The background window of CMainFrame Pin
prithaa14-Apr-09 17:44
prithaa14-Apr-09 17:44 
GeneralRe: The background window of CMainFrame Pin
Iain Clarke, Warrior Programmer14-Apr-09 21:46
Iain Clarke, Warrior Programmer14-Apr-09 21:46 
There are user settings like redraw-window-when-dragging that may be different from pc-pc, and from user-user, so it's perfectly possible to see differing behaviour.

Are you handling WM_ERASEBKGND in your view?

Have you done anything strange in PreCreateWindow to change the WNDCLASS of the view to use a NULL brush?

Can you make a brand new project, and in the new view's OnDraw, do the following:

void CMyNewView::OnDraw (CDC *dc)
{
   CRect rc;
   GetClientRect (&rc);

   dc->FillSolidRect (&rc, RGB(255,0,0));
   dc->MoveTo (rc.TopLeft ());
   dc->LineTo (rc.BottonRight ());
}


This is from memory, so you many need the odd change. But this should made a solid red view, with a line from one corner to the other.

If this works (and it had better!) on both PCs, then you are doing something "clever" that is breaking it in your application. Just comment out loads of code, see when things start working, and work your way forward again.

Iain.

In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job! http://cv.imcsoft.co.uk/[^]

GeneralRe: The background window of CMainFrame Pin
prithaa14-Apr-09 23:11
prithaa14-Apr-09 23:11 
QuestionHow to add Event handler to dynamically created Button Pin
hemlat13-Apr-09 21:34
hemlat13-Apr-09 21:34 
AnswerRe: How to add Event handler to dynamically created Button Pin
fitatc13-Apr-09 21:38
fitatc13-Apr-09 21:38 
GeneralRe: How to add Event handler to dynamically created Button Pin
Hamid_RT13-Apr-09 23:47
Hamid_RT13-Apr-09 23:47 
AnswerRe: How to add Event handler to dynamically created Button [modified] Pin
_AnsHUMAN_ 13-Apr-09 21:38
_AnsHUMAN_ 13-Apr-09 21:38 
GeneralRe: How to add Event handler to dynamically created Button Pin
hemlat13-Apr-09 23:05
hemlat13-Apr-09 23:05 
AnswerRe: How to add Event handler to dynamically created Button Pin
Hamid_RT13-Apr-09 23:54
Hamid_RT13-Apr-09 23:54 
QuestionHow do I catch the 0xC0000005 Exception? Pin
mildred-frontfree13-Apr-09 21:33
mildred-frontfree13-Apr-09 21:33 
AnswerRe: How do I catch the 0xC0000005 Exception? Pin
_AnsHUMAN_ 13-Apr-09 21:41
_AnsHUMAN_ 13-Apr-09 21:41 
GeneralRe: How do I catch the 0xC0000005 Exception? Pin
mildred-frontfree13-Apr-09 21:44
mildred-frontfree13-Apr-09 21:44 
AnswerRe: How do I catch the 0xC0000005 Exception? Pin
ParagPatel13-Apr-09 23:35
ParagPatel13-Apr-09 23:35 
GeneralRe: How do I catch the 0xC0000005 Exception? Pin
mildred-frontfree13-Apr-09 23:42
mildred-frontfree13-Apr-09 23:42 
QuestionHow to cancel long time drawing Pin
fitatc13-Apr-09 21:31
fitatc13-Apr-09 21:31 
AnswerRe: How to cancel long time drawing Pin
David Crow14-Apr-09 3:11
David Crow14-Apr-09 3:11 
GeneralRe: How to cancel long time drawing Pin
fitatc14-Apr-09 22:31
fitatc14-Apr-09 22:31 
GeneralRe: How to cancel long time drawing Pin
David Crow15-Apr-09 3:02
David Crow15-Apr-09 3:02 
GeneralRe: How to cancel long time drawing Pin
fitatc16-Apr-09 16:31
fitatc16-Apr-09 16:31 

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.