VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Display Message Box using MessageBoxIndirect API

Karthikeyan  (187 Submissions)   Windows API Call/Explanation   Visual Basic 5.0   Unknown Difficulty   Tue 2nd October 2001   Mon 8th February 2021

Display Message Box using MessageBoxIndirect API

API Declarations


Private Const MB_OKCANCEL = 1
Private Const MB_ABORTRETRYIGNORE = 2
Private Const MB_YESNOCANCEL = 3
Private Const MB_YESNO = 4
Private Const MB_RETRYCANCEL = 5
Private Const OK = 1
Private Const CANCEL = 2
Private Const ABORT = 3
Private Const RETRY = 4
Private Const IGNORE = 5
Private Const YES = 6
Private Const NO = 7


Private Type MSGBOXPARAMS
cbSize As Long
hwndOwner As Long
hInstance As Long
lpszText As String
lpszCaption As String
dwStyle As Long
lpszIcon As String
dwContextHelpId As Long
lpfnMsgBoxCallback As Long
dwLanguageId As Long
End Type
Private Declare Function MessageBoxIndirect Lib "user32" Alias "MessageBoxIndirectA" (lpMsgBoxParams As MSGBOXPARAMS) As Long

Rate Display Message Box using MessageBoxIndirect API (1(1 Vote))
Display Message Box using MessageBoxIndirect API.bas

Display Message Box using MessageBoxIndirect API Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters