I have a group of applications (dlls) all done in ddt.
One loads 2 cursors. When i exit this application and return to the menu,
and go to some of the other applications within the menu, one of the
previously loaded cursors shows up.
How do i get rid of (unload) the cursors when i exit the application that
initially sets them up. I have them in a resource file in the application that
loads them.
the following code is what i use to initially set them up.
I have tried doing the following on exiting the dialog but it doesnt seem to
help
One loads 2 cursors. When i exit this application and return to the menu,
and go to some of the other applications within the menu, one of the
previously loaded cursors shows up.
How do i get rid of (unload) the cursors when i exit the application that
initially sets them up. I have them in a resource file in the application that
loads them.
the following code is what i use to initially set them up.
Code:
STATIC hCurZoom AS DWORD STATIC hCurZoomO AS DWORD STATIC hCursor1 AS DWORD STATIC hPreview AS DWORD STATIC GraphicHandle AS LONG STATIC cursorname AS ASCIIZ * 255 STATIC cursorname2 AS ASCIIZ * 255 STATIC modulename AS ASCIIZ * 255 STATIC hCtrl& STATIC disable1& cursorname="ZOOMIN" cursorname2="ZOOMOUT" modulename="WUXPRNT.DLL" . . . CASE %WM_INITDIALOG hCurZoom = LoadCursor(GetModuleHandle(modulename), Cursorname) hCurZoomO = LoadCursor(GetModuleHandle(modulename), Cursorname2) hPreview = GetDlgItem(hDlgPreview, %IDC_Graphic1) hCursor1 = GetClassLong(hPreview, %GCL_HCURSOR) SetClassLong hPreview, %GCL_HCURSOR, hCurZoom PageBeingViewed&=1 PagesPreviewed&=1 lResult&=previewit(coid$,pagesPreviewed&) CONTROL DISABLE hDlgPreview,%IDC_GRAPHIC1
help
Code:
CASE 306 'cancel . . . setcursor %IDC_ARROW DIALOG END hDlgPreview,1
Comment