added RequestUserAttention
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1373,6 +1373,31 @@ wxUint32 wxTopLevelWindowMac::MacGetWindowAttributes() const
|
||||
return attr ;
|
||||
}
|
||||
|
||||
// Attracts the users attention to this window if the application is
|
||||
// inactive (should be called when a background event occurs)
|
||||
|
||||
static pascal void wxMacNMResponse( NMRecPtr ptr )
|
||||
{
|
||||
NMRemove( ptr ) ;
|
||||
DisposePtr( (Ptr) ptr ) ;
|
||||
}
|
||||
|
||||
|
||||
void wxTopLevelWindowMac::RequestUserAttention(int flags )
|
||||
{
|
||||
NMRecPtr notificationRequest = (NMRecPtr) NewPtr( sizeof( NMRec) ) ;
|
||||
static wxMacNMUPP nmupp( wxMacNMResponse )
|
||||
;
|
||||
memset( notificationRequest , 0 , sizeof(*notificationRequest) ) ;
|
||||
notificationRequest->qType = nmType ;
|
||||
notificationRequest->nmMark = 1 ;
|
||||
notificationRequest->nmIcon = 0 ;
|
||||
notificationRequest->nmSound = 0 ;
|
||||
notificationRequest->nmStr = NULL ;
|
||||
notificationRequest->nmResp = nmupp ;
|
||||
verify_noerr( NMInstall( notificationRequest ) ) ;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Shape implementation
|
||||
// ---------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user