QB64 Phoenix Edition
Anyway to paint an opening window bright white? - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10)
+---- Thread: Anyway to paint an opening window bright white? (/showthread.php?tid=1199)



Anyway to paint an opening window bright white? - Pete - 11-29-2022

Probably a @Spriggsy question.

I have a window I need to use WS_THICKBORDER to put just enough border around to make it resizable. The trouble is black windows leave a small black row when you use palette 7, 63: color 0, 7: CLS to white out the window. See a screen capture here: https://staging.qb64phoenix.com/showthread.php?tid=676&pid=10802#pid10802

So is there something made up to paint a window background with Win32 API and would doing so get rid of that ugly black row near the top?

Pete


RE: Anyway to paint an opening window bright white? - SpriggsySpriggs - 11-29-2022

Hmmmmmmmmm..... Maybe you could look at BeginPaint and EndPaint? Never really tried just painting a window.


RE: Anyway to paint an opening window bright white? - bplus - 11-29-2022

Hmm... that looks familiar!
   
   

Doubt paint is the problem.