본문 바로가기 메뉴 바로가기

다낙

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

다낙

검색하기 폼
  • 분류 전체보기 (94)
    • ComComComCom (73)
      • Common (6)
      • STL (1)
      • C,C++ (9)
      • API (10)
      • DX .. D3D (33)
      • C# (1)
      • StructureDesign (1)
      • Shader HLSL (2)
      • Unity (9)
    • mmmmmmmmmmmmmmath study (4)
    • development journal (0)
    • Life (4)
      • 뭐했 (2)
      • 살꺼당 샀댱 (2)
    • 경제 (3)
    • 소스,자료 (1)
      • 폰트 (1)
    • Photoshop (2)
    • 티스토리 관련 (2)
    • 추후분류 (2)
  • 방명록

ComComComCom/API (10)
아이콘 변경하기

일단 아이콘을 변경하기위 해서는 .ico파일이 필요하다. 프로젝트 폴더안에 파일명.ico파일을 넣어놓는다. 그리고나서 폴더안에있는 프로젝트명.rc 파일을 열어준다. /Microsoft Visual C++에서 생성한 리소스 스크립트입니다. // #include "resource.h" 이런식의 내용이 적혀있고 읽어내려가다보면 ///////////////////////////////////////////////////////////////////////////// // // 아이콘 // // 응용 프로그램 아이콘이 모든 시스템에서 일관된 상태를 유지하도록 하기 위해 // 가장 낮은 ID 값을 갖는 아이콘이 맨 처음 배치됩니다. 이런부분이 있다. 기존에 정의되어있는 아이콘들 아래에 ( 낮은 id 순서이므로 부여..

ComComComCom/API 2017. 7. 16. 19:07
[function] PeekMessage

PeekMessage function Dispatches incoming sent messages, checks the thread message queue for a posted message, and retrieves the message (if any exist). Syntax C++ 복사 BOOL WINAPI PeekMessage( _Out_ LPMSG lpMsg, _In_opt_ HWND hWnd, _In_ UINT wMsgFilterMin, _In_ UINT wMsgFilterMax, _In_ UINT wRemoveMsg ); Parameters lpMsg [out] Type: LPMSG A pointer to an MSG structure that receives message informa..

ComComComCom/API 2017. 7. 16. 15:46
WINAPI에서 콘솔 띄우기 Console Functions

Console Functions The following functions are used to access a console. Function Description AddConsoleAlias Defines a console alias for the specified executable. AllocConsole Allocates a new console for the calling process. AttachConsole Attaches the calling process to the console of the specified process. CreateConsoleScreenBuffer Creates a console screen buffer. FillConsoleOutputAttribute Set..

ComComComCom/API 2017. 6. 29. 01:13
키눌림

if (GetKeyState('W') & 0x8000) { } if (GetKeyState(VK_SPACE) & 0x8000) { } 등등

ComComComCom/API 2017. 6. 18. 14:48
ESC로 종료하기

테스트실행후 손을 마우스까지 움직이기 귀찮을땐 ESC 종료 코드를 만들어넣자 LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { //메세지 종류를 판별하는 switch 문 switch (message) { case WM_KEYDOWN: //키가 눌렸을때 switch (wParam) //wParam부분을 확인해서 { case VK_ESCAPE: //ESC였다면 PostQuitMessage(0); break; }break; } return 0; }

ComComComCom/API 2017. 6. 18. 13:19
이전 1 2 다음
이전 다음

Blog is powered by Tistory / Designed by Tistory

티스토리툴바