Page 1 of 1
MSGBOX
Posted: Thu Nov 29, 2007 11:17 am
by Silvio
Dear Antonio,
I saw there is an Microsoft function MESSAGEBOXEX to recrate box message gradient ( office style 2007)
I saw on a guide MessageBoxEx and MessageBox work the same way
int MessageBoxEx( HWND hWnd,
LPCTSTR lpText,
LPCTSTR lpCaption,
UINT uType,
WORD wLanguageId
);
I think if we modifiy all the source code MSG.c we c an have the box with this style
it is possible ?
Posted: Thu Nov 29, 2007 11:18 am
by Antonio Linares
Silvio,
I wasn't aware of it, thanks
I am going to review it...
Posted: Thu Nov 29, 2007 11:19 am
by Silvio
I found this code
Code: Select all
#include <9pm/windows.h>
#include <9pm/u.h>
#include <9pm/libc.h>
int WINAPI
MessageBoxEx(HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType, WORD wLanguageId)
{
/* MessageBoxW implement on Windows 95 */
return MessageBoxExW(hWnd, lpText, lpCaption, uType, wLanguageId);
}
Posted: Thu Nov 29, 2007 4:32 pm
by Silvio
Antonio,
see
http://msdn2.microsoft.com/en-us/library/ms645507.aspx
If I make it
Code: Select all
function MessageBox( cText, cCaption, nType )
return MessageBoxEx( GetActiveWindow(), cText, cCaption, nType, nil )
dll32 static function MessageBoxEx( hWnd AS LONG,;
lpText AS STRING,;
lpCaption AS STRING,;
uType AS LONG, wLanguageId AS LONG ) ;
AS LONG PASCAL FROM "MessageBoxExA" LIB "User32.dll"
it is correct ?
Posted: Thu Nov 29, 2007 4:35 pm
by Antonio Linares
Silvio,
> it is correct ?
It seems ok
Posted: Thu Nov 29, 2007 5:02 pm
by nageswaragunupudi
But what is its advantage over MessageBox function? Even according to MSDN the functionality is the same except that we can specify LaguageId in "Ex" version of the functions. Both of them look the same. Am I missing something?
Posted: Thu Nov 29, 2007 5:19 pm
by StefanHaupt
Silvio,
I too donĀ“t see any difference between the old function and this new one. No Office 2007 style.
Posted: Thu Nov 29, 2007 5:25 pm
by Silvio
You 're right , I saw it !!!
But on a website (vb) I saw this function with a image and the box message was with office style I not understand How !!!
I'm searching....
Posted: Thu Nov 29, 2007 5:31 pm
by Silvio
Perhaps I found a solution ....I'm trying