13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GetClasslnfoReturn valueIp WndClassvalue returned by the MAKEINTRESOURCE macro usedwhen the class was created.LPWNDCLASS Points to the WNDCLASS structure to whichthe function will copy the class information.The return value is TRUE if the function found a matching class andsuccessfully copied the data; the return value is FALSE if the function didnot find a matching class.IComments The IpszClassName, IpszMenuName, and hlnstance fields in theWNDCLASS data structure are not returned by this function. The menuname is not stored internally and cannot be returned. The class name isalready known since it is passed to this function. The GetClasslnfofunction returns all other fields with the values used when the class wasregistered.GetClassLongSyntaxParametersReturn valueCommentsLONG GetClassLong(hWnd, nIndex)function GetClassLong(Wnd: HWnd; Index: Integer): Longint;This function retrieves the long value specified by the nlndex parameterfrom the WNDCLASS structure of the window specified by the hWndparameter.h WndnlndexHWND Identifies the window.int Specifies the byte offset of the value to be retrieved. It canalso be the following value:ValueGCL_ WNDPROCMeaningRetrieves a long pointer to the windowfunction.The return value specifies the value retrieved from the WNDCLASSstructure.To access any extra four-byte values allocated when the window-classstructure was created, use a positive byte offset as the index specified bythe nlndex parameter. The first four-byte value in the extra space is atoffset zero, the next four-byte value is at offset 4, and so on.Chapter 4, Functions directory 293

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!