圣诞节
作者:分类:默认分类标签:
(image)
继续更新
作者:分类:默认分类标签:
今天更新了很多图片,有星座图,精美壁纸,经典的动画片,电影剧照。。详细请看 http://topcool.fotolog.com.cn/[1]
今天来更新一下,呵呵
作者:分类:默认分类标签:
由于***.blogspot.com” 的部分解封,所以以后会将文章分布在下面几个网址上http://topkong188.blogspot.com[1] 时光漫步 杂七杂八内容http://image-vision.blogspot.com[2] machine vision 机器视觉相关http://directshow.blogspot.com[3] directshow 相关http://topkong520.blogspot.com[4] 主要是photos and pictures
Keyboard
作者:分类:默认分类标签:
多数情况下,只会对光标移动键,有时候也会为Insert和Delete键来处理WM_KEYDOWN消息。在使用这些键的时候可以使用GetKeyState 来检查Shift 和Ctrl键的状态。 建立键盘接口的一种简单的方法就是将每一种WM_KEYDOWN消息翻译成等价的WM_HSCROLL或者WM_VSCROLL消息。通过向窗口处理处理程序发送虚假消息,可以让WndProc 认为它获得了滚动消息。 SendMessage (hwnd, message, wParam, lParam) ; 多数情况下,只会对光标移动键,有时候也会为Insert和Delete键来处理WM_KEYDOWN消息。在使用这些键的时候可以使用GetKeyState 来检查Shift 和Ctrl键的状态。 建立键盘接口的一种简单的方法就是将每一种WM_KEYDOWN消息翻译成等价的WM_HSCROLL或者WM_VSCROLL消息。通过向窗口处理处理程序发送虚假消息,可以让WndProc 认为它获得了滚动消息。 SendMessage (hwnd, message, wParam, lParam) ; case WM_KEYDOWN: switch (wParam)
Control Character Proc...
作者:分类:默认分类标签:
Key Character Code Duplicated by ANSI C Escape Backspace 0x08 Ctrl-H b Tab 0x09 Ctrl-I t Ctrl-Enter 0x0A Ctrl-J n Enter 0x0D Ctrl-M r Esc 0x1B Ctrl-[ If you need to read keyboard character input in your window, you process the WM_CHAR message. If you need to read the cursor keys, function keys, Delete, Insert, Shift, Ctrl, and Alt, you process the WM_KEYDOWN message. prefer treating the Tab, Enter, Backspace, and Escape keys as control characters rather than as virtual keys. My WM_CHAR processing often looks something like this: case WM_CHAR: [other program lines] switch (wParam) { case `b': // backspace [other program line break ; case `t': // tab [other program lines] break ; case `n': // linefeed [other program lines] break ; case `r': // carriage return [other program lines] break ; default: // ch
ScrollWindow
作者:分类:默认分类标签:
ScrollWindow (hwnd, 0, cyChar * (iVertPos - si.nPos), NULL, NULL) ; the ScrollWindow function to scroll information in the window's client area rather than repaint it. Although the function is rather complex (and has been superseded in recent versions of Windows by the even more complex ScrollWindowEx).The second argument to the function gives an amount to scroll the client area horizontally in pixels, and the third argument is an amount to scroll the client area vertically. The last two arguments to ScrollWindow are set to NULL. This indicates that the entire client area is to be scrolled. Windows automatically invalidates the rectangle in the client area "uncovered" by the scrolling operation. This generates a WM_PAINT message. InvalidateRect is no longer needed.Note that ScrollWindow is not a GDI function because it does not require a handle to a device context. It is one of the few non-GDI Windows functions that changes the appearance of the client area of a window. Rather pecul
The Great Gatsby-chapt...
作者:分类:默认分类标签:
Chapter 9AFTER two years I remember the rest of that day, and that night and the next day, only as an endless drill ofpolice and photographers and newspaper men in and out of Gatsby's front door. A rope stretched across themain gate and a policeman by it kept out the curious, but little boys soon discovered that they could enterthrough my yard, and there were always a few of them clustered open mouthed about the pool. Someonewith a positive manner, perhaps a detective, used the expression "madman." as he bent over Wilson's bodythat afternoon, and the adventitious authority of his voice set the key for the newspaper reports next morning. Chapter 9AFTER two years I remember the rest of that day, and that night and the next day, only as an endless drill ofpolice and photographers and newspaper men in and out of Gatsby's front door. A rope stretched across themain gate and a policeman by it kept out the curious, but little boys soon discovered that they could enterthrough m
A example about handl...
作者:分类:默认分类标签:
case WM_LBUTTONDOWN: { char szFileName[MAX_PATH]; HINSTANCE hInstance = GetModuleHandle(NULL); GetModuleFileName(hInstance, szFileName, MAX_PATH); MessageBox(hwnd, szFileName, "This program is:", MB_OK | MB_ICONINFORMATION); } break; case WM_LBUTTONDOWN: { char szFileName[MAX_PATH]; HINSTANCE hInstance = GetModuleHandle(NULL); GetModuleFileName(hInstance, szFileName, MAX_PATH); MessageBox(hwnd, szFileName, "This program is:", MB_OK | MB_ICONINFORMATION); } break;This code will show the user the filename of our program.Note the new set of curly braces {} . These are required when declaring variables inside a switch() statement.The references for GetModuleHandle() indicate that passing in NULL will return us "a handle to the file used to create the calling process", szFileName is " a pointer to a buffer that receives the path and file name of the specif
The Great Gatsby-chapt...
作者:分类:默认分类标签:
Chapter 9AFTER two years I remember the rest of that day, and that night and the next day, only as an endless drill ofpolice and photographers and newspaper men in and out of Gatsby's front door. A rope stretched across themain gate and a policeman by it kept out the curious, but little boys soon discovered that they could enterthrough my yard, and there were always a few of them clustered open mouthed about the pool. Someonewith a positive manner, perhaps a detective, used the expression "madman." as he bent over Wilson's bodythat afternoon, and the adventitious authority of his voice set the key for the newspaper reports next morning. Chapter 9AFTER two years I remember the rest of that day, and that night and the next day, only as an endless drill ofpolice and photographers and newspaper men in and out of Gatsby's front door. A rope stretched across themain gate and a policeman by it kept out the curious, but little boys soon discovered that they could enterthrough m
The Great Gatsby-chapt...
作者:分类:默认分类标签:
Chapter 8I COULDN'T sleep all night; a fog horn was groaning incessantly on? the Sound, and I tossed half sickbetween grotesque reality and savage,? frightening dreams. Toward dawn I heard a taxi go up Gatsby's drive,and immediately I jumped out of bed and began to dressI felt that I? had something to tell him, something towarn him about, and morning? would be too late. Crossing his lawn, I saw that his front door was still open and he? was leaning against a table in the hall, heavywith dejection or sleep. Chapter 8I COULDN'T sleep all night; a fog horn was groaning incessantly on? the Sound, and I tossed half sickbetween grotesque reality and savage,? frightening dreams. Toward dawn I heard a taxi go up Gatsby's drive,and immediately I jumped out of bed and began to dressI felt that I? had something to tell him, something towarn him about, and morning? would be too late. Crossing his lawn, I saw that his front door was still open and he? was leaning against a table in the hall, heav

topkong

  • 文章总数0
  • 画报总数0
  • 画报点击数0
  • 文章点击数0
  • IP属地北京市
个人排行
        最近来访( 0 )
        博文分类
        日期归档