Hiding text in a CStatic control
-
It would be nice if I could hide some text in a static control. I experimented a bit, and it looks like anything inserted after a \n is not displayed. I'm wondering if that's a predictable behaviour, or might it be a function of my particular setup. If it's predictable, and safe, I'll go ahead and use it. Any thoughts?
-
It would be nice if I could hide some text in a static control. I experimented a bit, and it looks like anything inserted after a \n is not displayed. I'm wondering if that's a predictable behaviour, or might it be a function of my particular setup. If it's predictable, and safe, I'll go ahead and use it. Any thoughts?
Why not use a hidden static? Though I must say that trying to "hide" something in the GUI sounds like a bad idea... "was wir auch tun, wohin wir gehen die illuminaten sind im system sie kontrollieren überall und 23 ist ihre zahl!" 23, welle: erdball
-
It would be nice if I could hide some text in a static control. I experimented a bit, and it looks like anything inserted after a \n is not displayed. I'm wondering if that's a predictable behaviour, or might it be a function of my particular setup. If it's predictable, and safe, I'll go ahead and use it. Any thoughts?
It's not really hidden - your static control is probably only high enough to see the first line. Try expanding it, and you'll probably see the rest. Dave
-
It's not really hidden - your static control is probably only high enough to see the first line. Try expanding it, and you'll probably see the rest. Dave
You're right! It's probably reasonably predictable behaviour. Thanks.
-
You're right! It's probably reasonably predictable behaviour. Thanks.
But it's still not really hidden. If the user has Spy (or something similar) installed, they can trivially retrieve the hidden text. The GetWindowText() API will also return the full text in the control, even if called from another process. Dave
-
But it's still not really hidden. If the user has Spy (or something similar) installed, they can trivially retrieve the hidden text. The GetWindowText() API will also return the full text in the control, even if called from another process. Dave
The intent was not to hide it as much as it was to encode some additional information in the text that the user wouldn't want to see. It's a long story... :)