MSGBOX

MSGBOX

Postby Silvio » 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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Silvio » Thu Nov 29, 2007 11:19 am

I found this code


Code: Select all  Expand view
#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

Postby Silvio » Thu Nov 29, 2007 4:32 pm

Antonio,
see http://msdn2.microsoft.com/en-us/library/ms645507.aspx

If I make it

Code: Select all  Expand view
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
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Antonio Linares » Thu Nov 29, 2007 4:35 pm

Silvio,

> it is correct ?

It seems ok
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby nageswaragunupudi » Thu Nov 29, 2007 5: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
User avatar
nageswaragunupudi
 
Posts: 10624
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby StefanHaupt » Thu Nov 29, 2007 5: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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby Silvio » Thu Nov 29, 2007 5: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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Silvio » Thu Nov 29, 2007 5:31 pm

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

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 72 guests

cron