Mercurial > vim
comparison src/gui_w32.c @ 3006:125c7bf52271 v7.3.275
updated for version 7.3.275
Problem: MS-Windows: When using a black background some screen updates
cause the window to flicker.
Solution: Add WS_CLIPCHILDREN to CreateWindow(). (Ren? Aguirre)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 10 Aug 2011 15:56:27 +0200 |
parents | be6b65096362 |
children | e5b17a5f6516 |
comparison
equal
deleted
inserted
replaced
3005:0091c46cfc45 | 3006:125c7bf52271 |
---|---|
1377 * TODO: last argument should point to a CLIENTCREATESTRUCT | 1377 * TODO: last argument should point to a CLIENTCREATESTRUCT |
1378 * structure. */ | 1378 * structure. */ |
1379 s_hwnd = CreateWindowEx( | 1379 s_hwnd = CreateWindowEx( |
1380 WS_EX_MDICHILD, | 1380 WS_EX_MDICHILD, |
1381 szVimWndClass, "Vim MSWindows GUI", | 1381 szVimWndClass, "Vim MSWindows GUI", |
1382 WS_OVERLAPPEDWINDOW | WS_CHILD | WS_CLIPSIBLINGS | 0xC000, | 1382 WS_OVERLAPPEDWINDOW | WS_CHILD |
1383 | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | 0xC000, | |
1383 gui_win_x == -1 ? CW_USEDEFAULT : gui_win_x, | 1384 gui_win_x == -1 ? CW_USEDEFAULT : gui_win_x, |
1384 gui_win_y == -1 ? CW_USEDEFAULT : gui_win_y, | 1385 gui_win_y == -1 ? CW_USEDEFAULT : gui_win_y, |
1385 100, /* Any value will do */ | 1386 100, /* Any value will do */ |
1386 100, /* Any value will do */ | 1387 100, /* Any value will do */ |
1387 vim_parent_hwnd, NULL, | 1388 vim_parent_hwnd, NULL, |
1408 | 1409 |
1409 /* Create a window. If win_socket_id is not zero without border and | 1410 /* Create a window. If win_socket_id is not zero without border and |
1410 * titlebar, it will be reparented below. */ | 1411 * titlebar, it will be reparented below. */ |
1411 s_hwnd = CreateWindow( | 1412 s_hwnd = CreateWindow( |
1412 szVimWndClass, "Vim MSWindows GUI", | 1413 szVimWndClass, "Vim MSWindows GUI", |
1413 win_socket_id == 0 ? WS_OVERLAPPEDWINDOW : WS_POPUP, | 1414 (win_socket_id == 0 ? WS_OVERLAPPEDWINDOW : WS_POPUP) |
1415 | WS_CLIPSIBLINGS | WS_CLIPCHILDREN, | |
1414 gui_win_x == -1 ? CW_USEDEFAULT : gui_win_x, | 1416 gui_win_x == -1 ? CW_USEDEFAULT : gui_win_x, |
1415 gui_win_y == -1 ? CW_USEDEFAULT : gui_win_y, | 1417 gui_win_y == -1 ? CW_USEDEFAULT : gui_win_y, |
1416 100, /* Any value will do */ | 1418 100, /* Any value will do */ |
1417 100, /* Any value will do */ | 1419 100, /* Any value will do */ |
1418 NULL, NULL, | 1420 NULL, NULL, |