متن مثالها و تمرينات كتاب

 

Chapter 2 : Strings
Chapter 3 : Message and Type of it
Chapter 4 : Mouse

Chapter 5 : Keyboard

Chapter 6 : Setting of Windows
Chapter 7 : Registery
Chapter 8 : Dialog Box and Type of it
Chapter 9 :  Windows and Type of it
Chapter 10 : Menu 

Chapter 11 : Graphic System

Chapter 12 : Ram

Link

Contact us and buy Book

Download All Example Of Book (Book.exe)

   
   
   

Chapter 2 : Strings

Download Chapter 2.exe

Example 2-1 : VarPtr, StrPtr and CopyMemory 

Example 2-2 : IsCharAlpha, IsCharAlphaNumeric, IsCharLower and IsCharUpper 

Example 2-3 : lstrcat, lstrcmp. lstrcmpi, lstrcpy, lstrcpyn, lstrlen, CharLower, CharUpper, CharLowerBuff,

                       and  CharUpperBuff 

UP


Chapter 3 : Message and Type of it

Download Chapter 3.exe

Example 3-1 : PostMessage 

Example 3-2 : PostQuitMessage 

Example 3-3 : SendMessage 

Example 3-4 : PostMessage, GetMessage, TranslateMessage, DispatchMessage, PostQuitMessage,

                      Window Function: CreateWindowEx, RegisterClassEx, ShowWindow, UpdateWindow,

                      PutFocus, DefWindowProc, DestroyWindow, Graphic Function: LoadIcon, GetStockObject

                      and DrawText and Mouse Function: LoadCursor 

UP


Chapter 4 : Mouse

Download Chapter 4.exe

Example 4-1 : SetDoubleClickTime and GetDoubleClickTime

Example 4-2 : GetCursorPos

Example 4-3 : SetCursorPos, mouse_event and Graphic Function: GetWindowRect

Example 4-4 : ClipCursor and Graphic Function: GetWindowsRect 

Example 4-5 : ClientToScreen and SetCursorPos

Example 4-6 : ShowCursor

Example 4-7 : SwapMouseButton

Example 4-8 : SetCapture, ReleaseCapture and GetCursorPos 

Example 4-9 : ReleaseCapture and Message Function: SendMessage

Example 4-10 : LoadCursor, SetSystemCursor and DestroyCursor.

Example 4-11 :CreateCursor, LoadCursor, SetSystemCursor and DestroyCursor  Graphic Function:

                        DrawIcon  

UP


Chapter 5 : Keyboard

Download Chapter 5.exe

Example 5-1:  GetKeyboardLayoutName and LoadKeyboardLayout 

Example 5-2: GetAsyncKeyState and  Window Function: DestroyWindow

Example 5-3: GetKeyboardState

Example 5-4: SetKeyboardState

Example 5-5: keybd_event

UP


Chapter 6 : Setting of Windows

Download Chapter 6.exe

Example 6-1: GetDiskFreeSpace

Example 6-2: GetDiskFreeSpaceEx

Example 6-3: GetDriveType

Example 6-4: GetLogicalDrives

Example 6-5: GetLogicalDriveStrings

Example 6-6: GetVolumeInformation

Example 6-7: SetVolumeLabel

Example 6-8:  GetWindowsDirectory, GetSystemDirectory and GetTempPath

Example 6-9: GetUserName

Example 6-10: GetComputerName

Example 6-11: SetComputerName

Example 6-12:  ChangeDisplaySettings, GetDeviceCaps, EnumDisplaySettings, ExitWindowsEx, Graphic

                        Function:CreateDC, DeleteDC

Example 6-13:  GetSysColor and SetSysColor.

Example 6-14: GetSystemInfo

Example 6-15: ExitWindowEx

UP


Chapter 7 : Registery

Download Chapter 7.exe

Example 7-1: RegCreateKey, RegSetValueEx, RegOpenKey and RegCloseKey

Example 7-2:  RegCreateKeyEx, RegOpenKeyEx,  RegCloseKey and RegDeleteKey

Example 7-3:  RegDeleteValue, RegCreateKey, RegOpenKey, RegCloseKey and RegSetValueEx

Example 7-4:  RegQueryValueEx, RegCreateKey, RegOpenKey, RegCloseKey and RegSetValueEx

Example 7-5:  RegEnumKeyEx and RegEnumValue.

Example 7-6: RegNotiftyChangeKeyValue.  

UP


Chapter 8 : Dialog Box and Type of it

Download Chapter 8.exe

Example 8-1: GetDlgItem, ChooseColor and Message Function: Send Message

Example 8-2: ChooseFont, SetDlgItemText and MessageBoxEx

Example 8-3:GetOpenFileName and GetSaveFileName

Example 8-4: GetOpenFileNamePreview and GetSavaFileNamePreview

Example 8-5: ShellAbout

UP


Chapter 9 :  Windows and Type of it

Download Chapter 9.exe

Example 9-1:  ShowWindow, DestroyWindow, FindWindow, FindWindowEx, CreateWindowEx and Graphic

                       Function: GetWindowRect

Example 9-2: CloseWindow

Example 9-3: EnumWindows, GetWindowText and GetWindowTextLength

Example 9-4: EnumChildWindows, GetWindowTex, GetDesktopWindow, GetWindowTextLength 

Example 9-5: SetWindowText

Example 9-6: MoveWindow

Example 9-7: SetWindowPos

Example 9-8: SetWindowLong and GetWindowLong

Example 9-9: SetWindowLong,CallWindowProc and Ram Function: SetClipBoardViewer

Example 9-10: SetWindowLong, DefWindowProc, Graphic Function: CreateFont, SetTextColor, SetBkColor

                        and Message Function: SendMessage

Example 9-11: IsWindow, GetParent, SetParent and WindowFromPoint.

Example 9-12: EnableWindow and IsEnableWindow .

Example 9-13: IsWindowVisible, ShowWindow and FindWindow

Example 9-14: IsZoomed and IsIconic

Example 9-15: SetWindowRgn and  Graphic Function: CreatePolygonRgn, FillRgn, FrameRgn,               

                        CreateSolidBrush

Example 9-16: FlashWindow

Example 9-17: FlashWindowEx

Example 9-18: GetAncestor and GetParent

Example 9-19: Putfocus

Example 9-20: RedrawWindow

Example 9-21: CreateWindowEx, RegisterClassEx, ShowWindow, UpdateWindow, PutFocus and        

                        DefWindowProc,  Message Function: PostMessage, GetMessage, TranslateMessage,   

                        DispatchMessage and PostQuitMessage Graphic Function: LoadIcon, GetStockObject,   

                        GetClientRect, DrawText, BeginPaint and EndPaint and Mouse Function: LoadCursor 

UP


Chapter 10 : Menu 

Download Chapter 10.exe

Example 10-1: GetMenu, GetSubMenu and GetMenuString.

Example 10-2: GetSystemMenu, RemoveMenu, DrawMenuBar and GetmenuItemCount

Example 10-3: GetSystemMenu, AppendMenu, TrackPopupmenu, CreatePopupMenu, DestroyMenu and 

                        Mouse Function: GetCursorPos 

Example 10-4:  GetMenu, GetSubMenu, GetMenuString, DrawMenuBar, GetMenuItemID, SetMenuItemInfo,

                        GetMenuItemInfo, ModifyMenu, IsMenu, Window Function: WindowFromPoint and   

                        Mouse Function: GetCursorPos 

Example 10-5: InsertMenu, InsertMenuItem, EnableMenuItem, GetMenuState, CheckMenuItem,      

                       CheckMenuRadioItem، CreateMenu, SetMenu, SetMenuItemBitmaps,DrawMenuBar   

                       Window Function: SetWindowLong, Graphic Function: LoadImage and Message Function:   

                       CallWindowProc

Example 10-6: GetMenuItemRect, HiliteMenuItem, GetMenu, GetSubMenu and  Mouse Function:   

                        SetCursorPos

Example 10-7: EndMenu

UP


Chapter 11 : Graphic System

Download Chapter 11.exe

Example 11-1: CreateCompatibleDC, DeleteDC, BitBlt, LoadImage, GetObject, DrawEdge and SelectObject

Example 11-2: CreateDC and GetDeviceCaps

Example 11-3: GetDC, GetWindowDC and TextOut

Example 11-4: ReleaseDC and GetWindowDC

Example 11-5: SetMapMode

Example 11-6: DrawAnimatedRects and SetRect

Example 11-7: PtInRect, SetRect, PtInRegion, CreateEllipticRgnIndirect, DeleteObject and SetPixelV

Example 11-8: CopyRect and GetWindowRect

Example 11-9: GetClientRect

Example 11-10: SetRect, OffsetRect, DrawFocusRect and DrawFrameControl

Example 11-11: UnionRect, SubtractRect and SetRect

Example 11-12: InflateRect

Example 11-13: IsRectEmpty, SetRectEmpty, SetRect, IntersectRect  

Example 11-14: CreateRectRgn, GetRgnBox, SetRect, IntersectRect, FillRect, CreateBrushIndirect

                         DeleteObject and  Window Function: RedrawWindow

Example 11-15:  CreateEllipticRgn, InvertRgn, CombineRgn and Window Function: SetWindowRgn

Example 11-16:CreatePolygonRgn, FillRgn, FrameRgn,CreateSolidBrush and Window Function:

                         SetWindowRgn

Example 11-17: CreateRoundRectRgn and Window Function: SetWindowRgn

Example 11-18: OffsetRgn, PtInRegion, CreateEllipticRgnIndirect, CreateRectRgnIndirect, FillRgn, SetRect,

                         CreateSolidBrush and DeleteObject

Example 11-19: CreateRectRgnIndirect, InvertRgn and DeleteObject

Example 11-20: SetPolyFillMode, GetPolyFillMode and Polygon  

Example 11-21: GetTextColor, SetTextColor, SetBkColor, GetBkColor,   SetBkMode and  ExtTextOut

Example 11-22: SetTextAlign and  TextOut.

Example 11-23: DrawTextEx and SetRect

Example 11-24: GrayString and CreateSolidBrush

Example 11-25: GetTextMetrix, SetMapMode and CreateFont

Example 11-26: CreateFont, TextOut, DeleteObject and SelectObject

Example 11-27: CreateFontIndirect and SelectObject

Example 11-28: GetTextExtentePoint32 and ExtTextOut

Example 11-29 : Ellipse

Example 11-30: Chord

Example 11-31: Pie

Example 11-32 : Polygon

Example 11-33 : PolyPolygon

Example 11-34 : Rectangle

Example 11-35: RoundRect

Example 11-36: FrameRect, FillRect, CreateSolidBrush and DeleteObject

Example 11-37: InvertRect

Example 11-38: Arc, GetArcDirection and SetArcDirection

Example 11-39: LineTo andMoveToEx

Example 11-40: polyLine

Example 11-41: CreatehatchBrush, Createpen, Rectangle, SelectObject and DeleteObject

Example 11-42: CreateBrushIndirect, FillRect and DeleteObject

Example 11-43: CreatePatternBrush, FillRect, SetRect, CreateBitmap and DeleteObject

Example 11-44: CreateSolidBrush, CreatePenIndirect, Rectangle, SelectObject and DeleteObject

Example 11-45: GetSysColorBrush, Rectangle and SelectObject

Example 11-46: CopyImage, SetClipboardData, EmptClipboard, CloseClipBoard and OpenClipboard

Example 11-47: CreateBitmap, FillRect, SetRect, CreatePatternbrush and DeleteObject

Example 11-48: GetBitmapBits, SetBitmapBits and GetObject

Example 11-49: AlphaBlend, CreateCompatibleBitmap, GetBitmapBits, SetBitmapBits, SelectObject and Ram

                         Function: CopyMemory (RTLMOVEMEMORY)

Example 11-50: BitBlt, CreateCompatibleDC, DeleteObject, LoadImage, GetObject, DrawEdge and

                         SelectObject

Example 11-51: StretchBlt, BitBlt, LoadImage, CreateCompatibleDC, DeleteObject, SelectObject and

                         GetObject

Example 11-52: GetStockObject, SelectObject, DeleteObject and Rectangle

Example 11-53: GetPixel and SetPixelV

Example 11-54: LoadImage, GetObject, DrawEdge, SelectObject, CreateCompatibleDC, DeleteDC and

                         BitBlt

Example 11-55: DrawFrameControl and SetRect

Example 11-56: DrawEdge, SetRect and OffsetRect

Example 11-57: DrawCaption, SetRect and OffsetRect

Example 11-58: LoadIcon, DrawIcon, DestroyIcon

Example 11-59: LoadIcon, GetStockObject, GetClientRect, DrawText, BeginPaint, EndPaint, Window

                         Function: CreateWindowEx,RegisteryClassEx, ShowWindow, UpdateWindow, PutFocus,

                         DefWindowProc, Message Function: GetMessage, TranslateMessage, DispatchMessage,

                         PostMessage and  Mouse Function: LoadCursor

UP


Chapter 12 : Ram

Download Chapter 12.exe

Example 12-1: GlobalMomoryStatus

Example 12-2: IsClipboardFormatAvailable, OpenClipboard, GetClipboardData,

                       GetClipboardData, GlobalSize, GlobalLock, CloseClipboard,

                       RtlMoveMemory, GlobalFree, SetClipboardData, GlobalAlloc,

                       EmptyClipboard, 

Example 12-3: CloseClipboard, OpenClipboard, EmptyClipboard  and

                       IsClipboardFormatAvailable

UP


Link

  1. API-Guide: This SoftWare API-Guide is an API-databasehas.  API-Guide has over 900 functions, all documented, and explained with an example.                                                                                               

  2. EDais Win32 API constant's search 1.13: This Site allow you to enter Api Constant to find out of its value.                                                                                                                                                                                                                    

  3. Visual Basic Code: This site has a many example in varirty type of api.                                                                                                                                             

  4. Delphi about: This site has a concepts and use of Api in delphi.


Contact us

 iranerpgroup@gmail.com


moj_softco@Yahoo.com