
I have noticed a comment in some of Pierre’s code before (I’m paraphrasing here): “We should clean our house before we move out”...that’s good advice
.... DeleteObject hTitleIcon
.... CASE %WM_DESTROY hIcon = SendMessage (hWnd, WH_SETICON, %ICON_BIG, [B]BYVAL[/B] [B]%NULL[/B]) ' remove icon from window; returns handle to prev icon DestroyIcon hIcon hIcon = SendMessage (hWnd, WH_SETICON, %ICON_SMALL, [B]BYVAL[/B] [B]%NULL[/B]) ' remove icon from window; returns handle to prev icon DestroyIcon hIcon .....
hTitleIcon = LoadIcon(GetModuleHandle(BYVAL %NULL), "PROGICON") SendMessage hWnd, %WM_SETICON, %ICON_SMALL, hTitleIcon
DeleteObject hTitleIcon
pWindow.BigIcon = AfxLoadIconFromResource(100, hInstance) pWindow.SmallIcon = AfxLoadIconFromResource(101, hInstance)
pWindow.CreateWindow(%NULL, "Database Search", 0, 0, 800, 600, _ %WS_OVERLAPPED OR %WS_BORDER OR %WS_DLGFRAME OR %WS_CAPTION OR %WS_SYSMENU OR _ %WS_MINIMIZEBOX OR %WS_MAXIMIZEBOX OR %WS_CLIPSIBLINGS OR %WS_VISIBLE, _ 0, CODEPTR(WindowProc))
pWindow.CreateWindow(%NULL, "Database Search", 0, 0, 800, 600, 0, 0, CODEPTR(WindowProc))
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: