전체 글
-
TransparentBlt 함수 관련프로그래밍/Windows API 2005. 6. 24. 05:35
TransparentBlt 함수는 BOOL TransparentBlt( HDChdcDest, // handle to destination DC intnXOriginDest, // x-coord of destination upper-left corner intnYOriginDest, // y-coord of destination upper-left corner intnWidthDest, // width of destination rectangle inthHeightDest, // height of destination rectangle HDChdcSrc, // handle to source DC intnXOriginSrc, // x-coord of source upper-left corner intnYOr..
-
선행처리기 지시어프로그래밍/프로그래밍 관련 2005. 6. 24. 05:34
선행처리기 지시어선행처리기에 대해서는 1회때 배운적이 있고선행처리기 지시어중 #include에 대해서 2회때 이미 배우셨습니다.하지만 지시어에는 이것 외에도 몇가지가 더 있습니다.그럼 그것들에 대해서 알아보죠. (1) #define#define라는 지시어는 매크로 기능을 수행하는 지시어 입니다.기본적인 사용법은 다음과 같습니다. #define 매크로명 [값] 이렇게 해 두면 프로그램 내에서 매크로명과 같은 이름을 가진 단어들을모두 값으로 바꿔 줌니다. 그리고 여기서 값은 없어도 되죠.예를 들어 #define DATA 10 이렇게 해 주면 프로그램 내에 DATA라는 단어를 모두 10으로 바꿔 주게 됨니다.즉 프로그램에서 if(a==DATA) { . . }이렇게 쓴 것은 실재로는 if(a==10) { . ...
-
hdc, MemDC 관련해서...프로그래밍/Windows API 2005. 6. 24. 05:34
MemDC(메모리DC)는 일반 hdc 보다 더 강력한 기능을 가지고 있다.. hBitmap 이 있을때 1. SelectObject(MemDC, hBitmap) - 이렇게 하면 메모리 DC가 비트맵 사이즈만큼 확장되면서 비트맵의 그림이 메모리DC에 그려진다. 2. SelectObject(hdc, hBitmap)- hBitmap를 SelectObejct은 메모리 DC만 가능하다. 옆과 같이 했을경우 아무일도 안일어난다. 그리고 동시에 두개의 메모리DC가 하나의 hBitmap을 SelectObject를 할수는 없다. Msdn내용 - Bitmaps can be selected for memory DCs only, and for only one DC at a time.
-
CreateCompatibleDC, CreateCompatibleBitmap 함수 차이점.프로그래밍/Windows API 2005. 6. 24. 05:34
CreateCompatibleDC(HDC hdc) - hdc에 NULL 써줘도 된다. NULL 써주면 내부적으러 스크린 DC 얻어서 사용한다. GetDC(NULL)와 비슷한원리 CreateCompatibleBitmap(HDC hdc, int Widht, int Height) - hdc에 NULL 써주면 안된다!! ex) g_MemDC = CreateCompatibleDC(NULL); // ok g_hBitmap = CreateCompatibleBitmap(hdc, 1024, 768); // 에러 리턴 HDC hdc = GetDC(g_hWnd); g_hBitmap = CreateCompatibleBitmap(hdc, 1024, 768); // ok g_hOldBitmap = (HBITMAP)SelectOb..
-
-
각종 이색 작명 사이트잡다한 주제/기타 and 미분류 2005. 6. 21. 19:41
각종 이색 작명사이트 가기-▷제다이식 이름 만들기http://www.xach.com/misc/jedi.html ▷스타워즈식 이름 만들기http://www.insectdissection.com/save-curtis/swname ▷스머프식 이름 만들기http://www-personal.umich.edu/~mule/smurfgen.html ▷요정식 이름 만들기http://www.emmadavies.net/fairy ▷닌자 버거식 이름 만들기http://www.ninjaburger.com/fun/games/ninjaname ▷인디언식 이름 만들기http://www.aspalta.cbc.ca/deaddog_asp/aininfo.asp ▷호빗식 이름 만들기http://www.chriswetherell.com/hob..
-