admin 发表于 2023-3-28 15:44:45

005-imGui窗口位置大小的设置保存和加载




005-imGui窗口位置大小的设置保存和加载




郁金香灬外挂技术
       
        https://www.yjxsoft.com/
       
        本教程视频1920*1080分辩率下观看最佳
        VS2017+win10 64位 环境
        郁金香老师:扣扣 150330575
        欢迎大家参加 郁金香灬技术 游戏安全与外挂的研究学习。
       
        兴趣是我们最好的老师
        成长需要过程与循序渐进        
        兴趣+坚持+时间+优秀的课教程会帮助你快速成功
   

005-imGui窗口位置大小的设置保存和加载
学习目标:
imgui设置窗口位置
imgui设置窗口大小
imgui窗口位置保存
imgui窗口位置加载


   voidSetWindowPos(const ImVec2& pos, ImGuiCond cond = 0);
   voidSetWindowSize(const ImVec2& size, ImGuiCond cond = 0);       
   voidSetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond = 0);
       // set named window position.
   voidSetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond = 0);   
       // set named window size. set axis to 0.0f to force an auto-fit on this axis.



void ImGui::LoadIniSettingsFromDisk(const char* ini_filename);
ImFileHandle ImFileOpen(const char* filename, const char* mode);
return ::_wfopen((const wchar_t*)&buf, (const wchar_t*)&buf);
00007FF60987035 | FF15 5CB51700          | call    qword ptr ds:[<&_wfopen>]         


if (SmallButton("Save to disk"))
            SaveIniSettingsToDisk(g.IO.IniFilename);
               
ImGui::SetWindowPos//设置窗口位置
ImGui::SetWindowSize //设置窗口大小
ImVec2结构


//关键代码...
**** Hidden Message *****


页: [1]
查看完整版本: 005-imGui窗口位置大小的设置保存和加载