Using Microsoft handles

Microsoft HANDLEs are addresses that become 64 bit integers rather than 32 bit integers when changing from 32 bit to 64 bit applications. The FTN95 KIND value 7 represents a 32 bit integer in 32 bit applications and a 64 bit integer in 64 bit applications.

Here is a list of ClearWin+ format codes and functions that require modification when changing to 64 bit compilation.

 

Format codes that output a Microsoft integer(7) handle
%hw handle of current window
%lc handle of previous control
%`cw insert ClearWin window
%`fr handle of current child window
%`og handle of OpenGL context

Format codes that require a Microsoft integer(7) handle as input
%fh use a Windows API font
%`bm draw a bitmap
%dw owner draw graphics
%`mi caption icon
%nw new window
%de disable another window

ClearWin+ functions returning integer(7) values
ADD_GRAPHICS_ICON@
CLEARWIN_INFO@
CREATE_CURSOR@
CREATE_BITMAP@
CREATE_ICON@
CREATE_SHARED_MEMORY@
CREATE_WINDOW@
DOWNLOAD@
GET_BITMAP_DC@
GET_GRAPHICS_DC@
GET_WINDOW_HANDLE@
HANDLE_FROM_CONTROL_NAME@
IDENTIFY_WINDOW_HANDLE@
IMPORT_BMP@
IMPORT_GIF@
IMPORT_PCX@
MAKE_BITMAP@
MAKE_ICON@
MAP_FILE_FOR_READING@
MAP_FILE_FOR_READ_WRITE@
MOVIE_PLAYING@
OPEN_INTERPROCESS_SHAREMEM@
OPEN_WAV_FILE_READ@
OPEN_WAV_FILE_WRITE@
SET_DEFAULT_WINDOW@
START_THREAD@
WINDOWS_INSTANCE@
WINDOW_HANDLE@

ClearWin+ subroutines returning an integer(7) value via its argument
GET_CURRENT_DC@

ClearWin+ subprograms with integer(7) input arguments (the first argument except where stated)
ADD_ACCELERATOR@
ADD_ACCELERATOR1@
ADD_MENU_ITEM@
ATTACH_BITMAP_PALETTE@ (both arguments)
CHANGE_BUTTON_TEXT@
CHANGE_HYPERTEXT@
CHANGE_PEN@
CLEAR_BITMAP@
IDENTIFY_WINDOW_HANDLE@
RELEASE_BITMAP_DC@
REMOVE_ACCELERATOR@
REMOVE_BITMAP@
REMOVE_ICON@
REPLACE_ENHANCED_MENU@
REPLACE_ENHANCED_POPUP_MENU@
RESIZE_WINDOW@
SELECT_GRAPHICS_OBJ_BY_WINDOW@
SELECT_PALETTE@ (second argument)
SET_CONTROL_VISIBILITY@
SET_HIGHLIGHTED@
SET_MAX_LINES@
SET_MOUSE_CURSOR_POSITION@
UPDATE_WINDOW@

Basket
Empty
 
Copyright © 1999-2020 Silverfrost Limited