PDA

View Full Version : SdShowMsg position



nnjcsc
07-13-2012, 09:20 AM
Is there a way to change SdShowMsg position, other than center screen?

The dialog id is: SD_NDLG_SHOWMSG (12012)

I tried using PlaceWindow function but did not work:

PlaceWindow ( SD_NDLG_SHOWMSG , nDx , nDy , LOWER_LEFT );
SdShowMsg ( "LOWER_LEFT" , TRUE );
Delay (2);
SdShowMsg ( "LOWER_LEFT" , FALSE );

PlaceWindow ( 12012 , nDx , nDy , LOWER_LEFT );
SdShowMsg ( "LOWER_LEFT" , TRUE );
Delay (2);
SdShowMsg ( "LOWER_LEFT" , FALSE );

RobertDickau
07-18-2012, 06:04 PM
I don't think there's a built-in way. (The PlaceWindow topic lists the things that can officially be moved using that function.) I haven't tried it, but if you can get a window handle, you might be able to call the SetWindowPos API function to move SdShowMsg around.