FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour MSGBOX
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
MSGBOX
Posted: Thu Nov 29, 2007 11:17 AM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
MSGBOX
Posted: Thu Nov 29, 2007 11:18 AM

Silvio,

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

I am going to review it...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
MSGBOX
Posted: Thu Nov 29, 2007 11:19 AM
I found this code


#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
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
MSGBOX
Posted: Thu Nov 29, 2007 04:32 PM
Antonio,
see http://msdn2.microsoft.com/en-us/library/ms645507.aspx

If I make it

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
MSGBOX
Posted: Thu Nov 29, 2007 04:35 PM

Silvio,

> it is correct ?

It seems ok

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
MSGBOX
Posted: Thu Nov 29, 2007 05:02 PM

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
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
MSGBOX
Posted: Thu Nov 29, 2007 05:19 PM

Silvio,

I too don´t see any difference between the old function and this new one. No Office 2007 style.

kind regards

Stefan
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
MSGBOX
Posted: Thu Nov 29, 2007 05:25 PM

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
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
MSGBOX
Posted: Thu Nov 29, 2007 05:31 PM

Perhaps I found a solution ....I'm trying

Best Regards, Saludos



Falconi Silvio

Continue the discussion