MSGBOX

Post Reply
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

MSGBOX

Post 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 ?
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Silvio,

I wasn't aware of it, thanks :-)

I am going to review it...
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post 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);
}
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post 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 ?
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Silvio,

> it is correct ?

It seems ok
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post 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?
Regards

G. N. Rao.
Hyderabad, India
StefanHaupt
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Post by StefanHaupt »

Silvio,

I too don´t see any difference between the old function and this new one. No Office 2007 style.
kind regards
Stefan
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post 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....
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

Perhaps I found a solution ....I'm trying
Best Regards, Saludos

Falconi Silvio
Post Reply