dunno wrote:how wide must a screen be...
Avoiding the
obvious quips about Abraham Lincoln's legs, or Dylan songs, we'll note that it's virtually impossible to display that many characters no matter how well-wrapped the string or how-scrollable the field may be. In this case (and in this case
only), I would forgive Nikos' normal ergonomic failures.) Given the normal edit-control of the WinAPI (as found in your friendly neighbourhood address-bar), scrolling through such a length would take... a wee-while.
On a curiously unrelated tangent, numbers given in documentation should always be well-salted... if you read the WinAPI's edit-control dox, it will happily point out that the "default" size is 32K... yet the true default limit is a more precise 30000 (it will begin to throw EN_MAXTEXT messages at anything above 29999). What does this have to do with MAXPATH? Very little (and it can be adjusted manually in any event) - but it does speak to the faithfulness of believing what we read. (For example, the initial '\\?\' four characters must be subtracted from the 32767 anyway, plus a null-terminator, possible env-var expansions, etc, etc... who the heck is going to allocate the required 65534 bytes [wchar_t] every time, "just in case?") Whatever happened to Y2K anyway... and how many scripts can be broken with this malarkey...
Also, the caveat that MAXPATH still applies to any given
component-length within these absurd strings should always be observed.
