标签: mixed-case

如何获得带空格和混合大小写的随机字符串?

我需要生成一个包含空格和mixedCase的随机字符串.

就是我到目前为止所做的一切:

    /// <summary>
    /// The Typing monkey generates random strings - can't be static 'cause it's a monkey.
    /// </summary>
    /// <remarks>
    /// If you wait long enough it will eventually produce Shakespeare.
    /// </remarks>
    class TypingMonkey
    {
        /// <summary>
        /// The Typing Monkey Generates a random string with the given length.
        /// </summary>
        /// <param name="size">Size of the string</param>
        /// <returns>Random string</returns>
        public string TypeAway(int size)
        {
            StringBuilder builder = new StringBuilder();
            Random random = new Random(); …
Run Code Online (Sandbox Code Playgroud)

c# string random mixed-case

6
推荐指数
1
解决办法
2442
查看次数

Win32 Edit控件混合大小写

我正在学习并且对此有所了解.我搜索了很长时间,找不到任何答案.

每次我在Edit控件中输入文本时,它总是变为小写,即使使用ShiftCapsLock.我没有在其上放置任何小写/大写样式:

hEditSub = CreateWindow("EDIT", NULL, WS_CHILD | WS_VISIBLE | WS_BORDER | EM_SETHANDLE, 10, 334, 270, 20, hwnd_MainSub, NULL, hInstance_Main, NULL);
Run Code Online (Sandbox Code Playgroud)

有没有办法让它混合大小写(允许大小写)?或者是否需要继承子类?

c++ winapi edit-control mixed-case

1
推荐指数
1
解决办法
99
查看次数

标签 统计

mixed-case ×2

c# ×1

c++ ×1

edit-control ×1

random ×1

string ×1

winapi ×1