<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Win32 :: 태그 :: 모두의프린터</title><link>https://modu-print.com/tags/win32/</link><description/><generator>Hugo</generator><language>ko-KR</language><lastBuildDate>Sat, 05 Aug 2023 08:46:28 +0900</lastBuildDate><atom:link href="https://modu-print.com/tags/win32/index.xml" rel="self" type="application/rss+xml"/><item><title>[Go언어 윈도 GUI] walkmgr에 WebView2(크로미움) 추가</title><link>https://modu-print.com/posts/9589/</link><pubDate>Mon, 31 Jul 2023 16:25:30 +0900</pubDate><guid>https://modu-print.com/posts/9589/</guid><description>오랜만에 walkmgr 에 새로운 기능을 추가하였습니다. 기존에 WebView 가 walkmgr 에 존재하였습니다. 이건 walk 에서 구성되어 있는 것이고 윈도의 OCX기반 WebView를 사용해 보신 분들은 잘 아시겠지만 .. 레거시 중에 레거시죠 .. 마지막 IE에 비해서도 기능이 허접하며 표준따윈 개나 줘버린 과거의 유산입니다. 최신 HTML, CSS, JS등을 이용 못하는건 둘째 치더라도 오만가지 JS관련 오류들을 비롯해서 많은 불편함을 감수해야지만 사용 가능한 놈이긴 한데요 ..</description></item><item><title>[Go언어 윈도 GUI] walkmgr에 모달 다이얼로그(Modal Dialog) 추가</title><link>https://modu-print.com/posts/1794/</link><pubDate>Thu, 29 Jun 2023 15:32:00 +0900</pubDate><guid>https://modu-print.com/posts/1794/</guid><description>지금까지 walkmgr 에 추가된 기능들로도 어지간한 윈도 네이티브 GUI 프로그래밍은 가능 했습니다만. 보편적인 GUI 프로그래밍에서 가장 크게 부족한 기능중 하나가 모달 다이얼로그(Modal Dialog) 기능이었습니다.&#10;흔히 다이얼로그(Dialog)라고 하자면 대화창 또는 대화상자라고 칭하곤 하지요..&#10;일반적으로는 사용자의 의사를 묻거나 사용자의 어떤 선택이 필요한 경우 사용자 선택에 따른 로직의 분기가 필요하다던가 하는 경우에 사용됩니다.&#10;가장 쉽게 접하는것은 MessageBox 같은 함수겠지요. 자바스크립트를 기준하자면 alert 이나 confirm 같은 함수로 생성되는 대화창을 들 수 있겠습니다.</description></item><item><title>MS윈도 - 알려진 폴더 경로 얻기</title><link>https://modu-print.com/posts/3379/</link><pubDate>Tue, 28 Jun 2022 09:30:00 +0900</pubDate><guid>https://modu-print.com/posts/3379/</guid><description>시스템 프로그래밍을 하다보면 .. 윈도에서 흔히 쓰는 경로들 ..&#10;바탕화면, 다운로드, 폰트 같은 경로들을 얻어 써야 하는 경우가 있습니다.&#10;이중 바탕화면이나 다운로드 같은 경로는.. 보통은 특정 룰을 가지고 생성되지만 &#10;사용자가 경로를 변경해서 쓸수도 있지요 ..&#10;레지스트리를 직접 읽어서 처리하는 방법도 있지만 32비트 64비트 분리해서 처리하고 이래저래 복잡할 수 있습니다.</description></item><item><title>Go 윈도 프로그래밍시 실행파일에 리소스정보 적용</title><link>https://modu-print.com/posts/3743/</link><pubDate>Mon, 18 Oct 2021 12:05:00 +0900</pubDate><guid>https://modu-print.com/posts/3743/</guid><description>우선 Walk를 쓰던 뭘 하던 윈도용 프로그램을 만드는 경우에는 .. 프로그램의 아이콘을 지정하고 싶기도 하고 .. &#10;프로그램의 기본 아이콘과 보통 윈도 프로그래밍에서 말하는 메니페스트(Manifest)의 적용은 rsrc 라는 패키지를 통해 합니다.&#10;GitHub - akavel/rsrc: Tool for embedding .ico &amp; manifest resources in Go programs for Windows. Tool for embedding .ico &amp; manifest resources in Go programs for Windows. - GitHub - akavel/rsrc: Tool for embedding .ico &amp; manifest resources in Go programs for Windows. 요 패키지를 go get ( 최근 go에서는 go install ) 해서 우선 설치하시면 되구요.</description></item><item><title>CreateProcess 예제</title><link>https://modu-print.com/posts/3739/</link><pubDate>Mon, 21 Jun 2021 11:53:00 +0900</pubDate><guid>https://modu-print.com/posts/3739/</guid><description>보통 다른 프로그램을 프로그래밍 적으로 실행을 하려면 ShellExcute 함수를 많이 쓰긴 합니다만.. 다른 이유로 CreateProcess 로 실행을 해야 하는 경우도 있지요 .. PID로 뭔가를 해야 한다거나 .. 등등...&#10;그런때 쓰시면 됩니다.&#10;C++ / * RunProcess / BOOL RunProcess(TCHAR* szExeName) { STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory(&amp;si, sizeof(si)); si.cb = sizeof(si); ZeroMemory(&amp;pi, sizeof(pi)); // Start the child process. if (!CreateProcess(NULL, // No module name (use command line) szExeName, // Command line NULL, // Process handle not inheritable NULL, // Thread handle not inheritable FALSE, // Set handle inheritance to FALSE 0, // No creation flags NULL, // Use parent's environment block NULL, // Use parent's starting directory &amp;si, // Pointer to STARTUPINFO structure &amp;pi) // Pointer to PROCESS_INFORMATION structure ) { return FALSE; } // Wait until child process exits. WaitForSingleObject(pi.hProcess, INFINITE); // Close process and thread handles. CloseHandle(pi.hProcess); CloseHandle(pi.hThread); return TRUE; }</description></item></channel></rss>