Share

MFC Global Functions

Description

Defines global functions specific to MFC classes.

Functions

Function Description
AcUiAppResourceInstance Returns the application's resource instance; identical to acedGetAcadResourceInstance().
AcUiContextHelpFileName Returns the default context help file base name for the application (for example, "acadctxt.hlp").
AcUiEnableToolTips Enables tool tips based on the application's TOOLTIPS system variable setting.Note: This function is deprecated and maybe removed in a future release. No need to call it anymore.
AcUiFindContextHelpFullPath This function expands a help file name into a fully qualified pathname. The file is located via a call to acedFindFile(). Returns TRUE on success and FALSE otherwise.
AcUiIsInputPending This routine is used internally.
AcUiMainWindow Returns a pointer to the application's main window or NULL on error.
AcUiRootKey This function returns a string representing the root of the application's entries in the system registry.
AdUiAlertDialogInclude fileadui.hThis function shows an alert type dialog with three buttons. The defButton parameter indicates which button is the default (0 = primary, 1 = secondary, 2 = Cancel). Returns 0-based button index, or -1 on CANCEL. Button 2 is always the CANCEL button.
AdUiDataValidationLevel This routine is used internally.
AdUiEnableDockControlBars For internal use only.
AdUiEnableDocking For Autodesk internal use only.
AdUiFindContextHelpFullPath This helper function expands a help file name into a fully qualified pathname.
AdUiGetRegisteredPaletteSetFloatingFrameClass Returns a pointer to the runtime class that should be used for floating a palette set. See AdUiSetFloatingFrameClass().
AdUiGetSafeParentHwnd This function finds a suitable parent window for a dialog when none is explicitly supplied. The algorithm obtains the active window (using GetActiveWindow()) and then traverses the parent hierarchy (using GetParent()). A disabled window or the main window terminates the walk.
AdUiGetThemeManager For internal use only.
AdUiHideBalloonTip For internal use only.
AdUiMessage This function returns the AdUi-registered Windows message. The AdUi messaging system sends or posts this message to various windows, passing additional WPARAM and LPARAM values.
AdUiNotification When a handler processes an AdUi message, a notification may be encrypted in the high word of the received WPARAM. This function extracts the notification code from the message parameter.
AdUiNotifyId When a handler processes an AdUi message, a control identifier may be encrypted in the low word of the received WPARAM. This function extracts the identifier from the message parameter.
AdUiRegisterDockingTool This routine is used internally.
AdUiRegisterFloatingFrameClassAddress A RealDWG host application must use this function to pass a pointer to the floating flame class member (CFrameWnd::m_pFloatingFrameClass) at startup in order for palette sets to work properly.
AdUiRegisterPaletteSetFloatingFrameClass For internal use only.
AdUiRegisterTool Makes a tool restartable the automatically next session. Call this function once for each tool that your application support and that you want to be automatically restarted the next session. When the session terminates, if the function AdUiRegisterTool has been previously called and the control bar having the pID identifier is visible, then the tool will be automatically restarted the next session, by invokation of the command specified by lpszCommand.
AdUiSaveDockingToolPositions This routine is used internally.
AdUiSetDockBarMinWidth This function allows the client to override the default AutoCAD setting for the dock bar's min width.
AdUiSetFloatingFrameClass When calling CFrameWnd::FloatControlBar(), applications will need to swap the floating frame class if the control bar passed to FloatControlBar() is a kind of CAdUiPaletteSet. Applications can perform this swap by calling AdUiSetFloatingFrameClass() before and after the call to FloatControlBar().For example:
AdUiShowDockControlBars For internal use only.
AdUiSubstituteShellFont This function is used internally by AdUi dialogs to alter the default font displayed in the window. To be effective, this routine should be called during dialog initialization (in other words, the dialog's HWND must have been created), the font must not have already been assigned a HANDLE, and the font should persist for the duration of the dialog (usually making the font a member of the dialog will suffice). This function determines if the default font used by the dialog is actually supported by the current locale settings. If not then the routine attempts to create a font based... more
CanStealFocusFromDockedWindow This routine is used internally.
InitAdUiDLL Initializes the extension DLL, registers the classes, etc. Call this exported function once from your DLL or executable. An ideal location is the InitInstance() member function.

Topics

Topic Description
AdUiNotify
AdUiPostNotify
AdUiShowBalloonTip
IsValidOnColon@AcString* Indicates whether the device name contains a valid use of a colon.

Was this information helpful?