How to Create a Child "Windows" Window Using the LCKID: Q117357 2.50 2.60 WINDOWS kbinterop The information in this article applies to:
SUMMARYAs shown below, you can use the FoxPro Library Construction Kit to create a child "Windows" window that can be manipulated within FoxPro. Using this method, you can create a window procedure that can receive Windows messages such as WM_PAINT.
MORE INFORMATION
FoxPro Sample CodeSET LIBRARY TO Showind.fll =ShowTheWind()
C Sample Code
HINSTANCE hinst,mhinst ;
HWND hwndWindow = NULL;
MSG msg;
WNDCLASS wc;
long FAR PASCAL WndProc(HWND hWnd, UINT message, WORD wParam, LONG lParam); HINSTANCE Inst;
{
}
long FAR PASCAL WndProc(HWND hWnd, unsigned message,WORD wParam, LONG lParam) { return(0L);
}
FoxInfo myFoxInfo[] = { {"SHOWWIND", (FPFI)ShowTheWindow, 0, ""}, }; FoxTable _FoxTable = { (FoxTable FAR *)0, sizeof(myFoxInfo) / sizeof(FoxInfo), myFoxInfo };
REFERENCESMicrosoft FoxPro Library Construction Kit "Developer's Guide," version 2.5 Microsoft Visual C++ "Programmer's Reference, Volume 2: Functions" "Programming Windows 3.1," Microsoft Press Additional reference words: FoxWin 2.50 2.60 LCK API KBCategory: kbinterop KBSubcategory: FxtoolLck
|
|
Last Reviewed: May 22, 1998 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |