So, for me, a return value of -1 from GetWindowColor() does make sense and basically says that the developer is either using the default color or has set a background using API. However, as already mentioned, there are so many different types of possible brush (hatched, patterned, null, solid.) that it probably didn't seem worth the bother. Well, this is a half truth, it can use GetClassLong_() to get the background brush and then use GetObject_() to examine the brush in detail. Indeed, you may have used a background brush built from an image rather than a color, or even one with a hatched pattern! How then does PB determine the background color? But, if you want write native applications, not requiring a third-party dlls and platforms, or. Python and Java is better for cross-platform development, not least because not compiling to platform-dependent executable format on many OSes. In such cases, if you used API to set the color, Purebasic cannot easily determine which color you may have used when creating the background brush. C is more convenient and powerful than PB for writing Windows applications. However, you could have instead used API commands to set a color by specifying the handle to a background brush with the SetClassLong_() function. Huge set of internal commands (1600+) to quickly and easily build applications or games. After Borland discontinued the project following release 1. Using Purebasic commands, a return value of -1 from GetWindowColor() simply means that you haven't used the SetWindowColor() command to set a color. PowerBasic is the ultimate Basic compiler for Windows It was originally Bob Zales project TurboBasic 1.0 over at Borland in 1985. BarryG Addict Posts: 2828 Joined: Thu 7:17 am. This does kind of make sense when you consider how you set a window color under Windows. PureBasic 6.02/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10 Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD Synology DS1821+/36GB RAM/130TB Synology DS920+/20GB RAM/54TB Synology DS916+ii/8GB RAM/12TB. My question is why using the command GetWindowColor not returning the right windowcolor? 2005 Hroudtwolf & Englisch PureBasic forums Declare CutOnTransparenceColor (win,color) WSEXLAYERED. Attention: It works only with Windows 2000 and XP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |