6 replies
by sonic_the_dude Accepted solution
by rehanz_138 Accepted solution
by absolutely Accepted solution
I'm sorry, that was not helpful.
:^0
OK, in seriousness, I disagree about the electromagnetic field: that should only affect a CRT, not a laptop monitor which must be LCD, thus not bothered by magnetic fields. The VGA driver is a strong possibility.
Did the problem start after installing/uninstalling some piece of software?
by selvakumarips Accepted solution
u plz change your screen refresh rate
right click your desktop -> properties ->settings ->advanced->monitor->screen refresh rate(plz change to high refresh rate)
by oh smeg Accepted solution
Long spell of running on the restart?
If it's happening from the very start it [b]Can Not[/b] be a Video Driver as these are not loaded till the OS is running so if this is happening in the BIOS or early Windows Splash Screens while cold it points to a bad Video Card or a faulty Video Chip on the M'Board. Without more information it's impossible to say any more here about a possible solution.
If this only happens on a restart after everything is hot you can probably solve the problem with a NB Cooler.
Col
by jperez Accepted solution
The problme with t WM-Erasebk-gng
Here is the code to fix it.LRESULT CALLBACK NoFlickerWndProc(HWND hWnd, UINT msg,
WPARAM wParam, LPARAM lParam)
{
PAINTSTRUCT ps;
switch(msg) {
case WM_SETTEXT:
lstrcpy(szCaption, (LPSTR)lParam);
InvalidateRect(hWnd, NULL, TRUE);
break;
case WM_SETFONT:
hfnt = (HFONT) wParam;
break;
case WM_ERASEBKGND:
return (LRESULT)1; // Say we handled it.
case WM_PAINT:
BeginPaint(hWnd, &ps);
Paint(hWnd, &ps);
EndPaint(hWnd, &ps);
break;
default:
return DefWindowProc(hWnd, msg, wParam, lParam);
break;
}
return NULL;
}
static void Paint(HWND hWnd, LPPAINTSTRUCT lpPS)
{
RECT rc;
HDC hdcMem;
HBITMAP hbmMem, hbmOld;
HBRUSH hbrBkGnd;
HFONT hfntOld;
//
// Get the size of the client rectangle.
//
GetClientRect(hWnd, &rc);
//
// Create a compatible DC.
//
hdcMem = CreateCompatibleDC(lpPS->hdc);
//
// Create a bitmap big enough for our client rectangle.
//
hbmMem = CreateCompatibleBitmap(lpPS->hdc,
rc.right-rc.left,
rc.bottom-rc.top);
//
// Select the bitmap into the off-screen DC.
//
hbmOld = SelectObject(hdcMem, hbmMem);
//
// Erase the background.
//
hbrBkGnd = CreateSolidBrush(GetSysColor(COLOR_WINDOW));
FillRect(hdcMem, &rc, hbrBkGnd);
DeleteObject(hbrBkGnd);
//
// Select the font.
//
if (hfnt) {
hfntOld = SelectObject(hdcMem, hfnt);
}
//
// Render the image into the offscreen DC.
//
SetBkMode(hdcMem, TRANSPARENT);
SetTextColor(hdcMem, GetSysColor(COLOR_WINDOWTEXT));
DrawText(hdcMem,
szCaption,
-1,
&rc,
DT_CENTER);
if (hfntOld) {
SelectObject(hdcMem, hfntOld);
}
//
// Blt the changes to the screen DC.
//
BitBlt(lpPS->hdc,
rc.left, rc.top,
rc.right-rc.left, rc.bottom-rc.top,
hdcMem,
0, 0,
SRCCOPY);
//
// Done with off-screen bitmap and DC.
//
SelectObject(hdcMem, hbmOld);
DeleteObject(hbmMem);
DeleteDC(hdcMem);
}
This discussion is closed to new replies.
Trending Laptops Forum posts
Sort by Trending