Jump to content

Scintilla interferes with viewport display


Go to solution Solved by Josh,

Recommended Posts

Posted

Once any code file is opened in the script editor, the main window viewports can no longer resize correctly.

This happens if the script editor window is parented to the main window, or if it is a top-level window.

Nvidia GEForce 1080 TI, driver 32.0.15.7688.

The issue seems to be caused by this line of code, which is used for the Scintilla widget control:

SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR)SyntaxEditor::CustomWndProc);

image.thumb.png.e2bfa48ee29be19e49bd5b0ab2840d97.png

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

I even tried creating the script editor window from a separate Win32 window class, but it made no difference. It looks like this effects all windows created by this process. My guess is it has to do with the Nvidia overlay.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

Using SetWindowSubclass() instead does not solve the problem.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

This even happens if I add WS_POPUP to the Scintilla window style and create it with a NULL parent, and set hInstance to NULL.

My job is to make tools you love, with the features you want, and performance you can't live without.

  • 2 weeks later...
Posted

This actually has nothing to do with the window subclassing. Simply creating a Scintilla window in the program is enough to corrupt the 3D windows.

My job is to make tools you love, with the features you want, and performance you can't live without.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...