Question

Locked

my screen flickers whith funny lines

By sonic_the_dude ·
my laptop screen flickers when i turn it on like has funny lines through it and when i plug it in to another monitor its still the same

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

VGA driver Problem

by rehanz_138 In reply to my screen flickers whith ...

May be your VGA driver needs to be changed/ reinstalled. Another problem may be electromagnetic field neer computer.

Collapse -

He has been reading the "Friday Yuk" too much!

by Absolutely In reply to VGA driver Problem

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?

Collapse -

regarding flickering of ur screen

by selvakumarips In reply to my screen flickers whith ...

u plz change your screen refresh rate
right click your desktop -> properties ->settings ->advanced->monitor->screen refresh rate(plz change to high refresh rate)

Collapse -

Does this happen when you first turn on or after a

by OH Smeg In reply to my screen flickers whith ...

Long spell of running on the restart?

If it's happening from the very start it Can Not 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

Collapse -

Here is what I found about the problem

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_ERASEBKGN
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);

}

Back to Laptops Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums