- 0
[C++, Win32] Window/Control font & background colour
Asked by
+theblazingangel,
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By Tarrant64 · Posted
Sure - let's expand on that a bit then to try and be of more help. It's not a one-time use code that can be gamed - each time the proof is required a new transaction takes place to go through the "proof" process. It's a unique step each time. Not a...reusable QR code or pass so to speak. Each time proof is required, a new cryptographic transaction is required. The tricky part here, is trusted issuers. That is still needed. Since this is open source - it doe snot mean that Google has to be the issuer. Google has just provided the tooling to do this, but they don't store the data - to be clear. Presumably, again - you would have some type of government or state issued digital ID that supports the zero-knowledge functions. Effectively, the same entities today that have your information and you (assumingly trust) would continue to have it, it would just be able to be leveraged in a more private manner when you go somewhere or interact with anything requireing age verification. To fake this, someone would need to have a legitimate private key tied to an actual real identity. Cryptographic checks using zero-knowledge would fail otherwise - and again - it can't be used over and over again. Can someone screw up and somehow leak that private key? Sure. No different than leaking your password to your private accounts - a password change would be necessary and let's hope that future implementation of ZKP-based identities bake in some kind of 2FA/MFA for better security. There's not much to hack here, as I said - really comes down to the issuer. If you receive this from the government, none of your real data gets sent to say "MyHubOfChoice.com" when doing age verification - the protocol is only designed to say "Yes - I meet the requirement." Reality is, this keeps you more anonymous than you could ever be today with age verification without having to share anything else about you. However, it's worth stating that anonymity isn't the goal with ZKP - it's removing disclosure. True anonymity is more difficult, as how everything works today to an extent you need to prove who you are with a "trusted" source (ie government/state issued ID). And that data, at the end of the day, does sit in a centralized db as designed. Could that change in the future, perhaps. But the goal of this is just to not have to hand over anymore information than you need to. -
By pmrd · Posted
Oh yeah because its SO hard to duplicate some of the server's logic on the client -
By adrynalyne · Posted
Software versions increase while older ones are deprecated. This is nothing new, except now it's not included with Windows. Do you not upgrade your software? The biggest issue for me living with 2.0 was that the new versions never upgraded it, it installed side-by-side. I accidentally launched the shite version more than once on accident. -
By adrynalyne · Posted
They would have to include .NET (not be to be confused with legacy .NET Framework), and they don't. That might be why...dunno. Or maybe because it's open source (guessing)? It's kind of nice to have it separated from the OS. -
By xillibit · Posted
the version 7 needs to be installed separately, why not include it in windows 11 release ?
-
-
Recent Achievements
-
K.I.S.S. earned a badge
One Year In
-
solidox earned a badge
Week One Done
-
solidox earned a badge
Dedicated
-
Devesh Beri earned a badge
Week One Done
-
956400 earned a badge
Week One Done
-
-
Popular Contributors
-
Tell a friend
Question
+theblazingangel MVC
I'm having problems here, C++ Win32 GUI programming is hard!
Problem #1: When i created the project in visual studio, it gave me some code that produced the main window. The code specifies the background colour for the window class as COLOR_WINDOW+1. However, here on Windows 7, that's white! I'd really like it to be light grey as per the norm. I can get this with COLOR_WINDOW without the '+1'. But i'm worried about the effect of this across other versions of windows and custom themes. Is this the recommended solution, or should I do it a different way?
Problem #2: More importantly, I'm having trouble with fonts! I've created a new window (an actual window, not a dialog), and created a button on it. The font used for the button is a really old system font (bold, black, and blocky). How do I get the window and all of it's controls to take on the default system font (Segoe UI for win7)? I've spent hours on this and haven't come up with an answer yet :(
SYSTEM_FONT and DEFAULT_GUI_FONT are apparently obsolete. I've heard about a SystemParametersInfo() function, NONCLIENTMETRICS sturctures and LOGFONTs. Am I going down the right path with that? How does this help me? Do i want lfMessageFont ("information about the font used in message boxes")????
I'm doing everything the hard way btw. Plain old C++, Win32, no MFC, no "forms", no dialog boxes designed in a resource file, and it's my first gui app using C++.
Please help...
Link to comment
https://www.neowin.net/forum/topic/817606-c-win32-windowcontrol-font-background-colour/Share on other sites
12 answers to this question
Recommended Posts