Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

is it wrong pointer to a dialog box



Hello ,
I have some difficulty while setting title of a dialogbox.
Please check the following sample code. I dont know if I am using the
correct way but its working . Please try to tell me correct method.

I open the modified Dialog 'DIALOGID_MsgBoxOK' and I get the
window title but if I use mdlDialog_openInfoBox instead then also I get
the window title. How come the db is pointing to this one when I
got the pointer db to point at DIALOGID_MsgBoxOK.

Could anyone have a point for me.
thanks in advance,
Lee.

void display_Dialog(ULong fpos)
{
DialogBox *db;
sprintf(msg,"FilePos=%ld",fpos);

db=mdlDialog_create(NULL,NULL,RTYPE_DialogBox,(int)DIALOGID_MsgBoxOK,FALSE);
if(db)
{
mdlWindow_titleSet(db,"File position");
mdlDialog_openMessageBox(DIALOGID_MsgBoxOK,msg,MSGBOX_ICON_INFORMATION);
 or mdlDialog_openInfoBox(msg); 
}


-- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.