Aros/开发者/文档/库/ScreenNotify
外观
您可以使用屏幕通知消息获取有关屏幕状态更改(例如屏幕到前/屏幕到后)的通知。
您可以获得以下消息
SNOTIFY_AFTER_OPENSCREEN /* screen has been opened */ SNOTIFY_BEFORE_CLOSESCREEN /* going to close screen */ SNOTIFY_AFTER_OPENWB /* Workbench is open */ SNOTIFY_BEFORE_CLOSEWB /* Workbench is going to be closed */ SNOTIFY_AFTER_OPENWINDOW /* new window */ SNOTIFY_BEFORE_CLOSEWINDOW /* window is going to be closed */ SNOTIFY_PUBSCREENSTATE /* PubScreenState() */ SNOTIFY_LOCKPUBSCREEN /* LockPubScreen() */ SNOTIFY_SCREENDEPTH /* ScreenDepth() */ SNOTIFY_AFTER_CLOSESCREEN /* notify after CloseScreen() */ SNOTIFY_AFTER_CLOSEWINDOW /* dto. CloseWindow() */ SNOTIFY_BEFORE_OPENSCREEN /* notify before OpenScreen() */ SNOTIFY_BEFORE_OPENWINDOW /* dto. OpenWindow() */ SNOTIFY_BEFORE_OPENWB /* like OPENSCREEN */ SNOTIFY_AFTER_CLOSEWB /* like CLOSESCREEN */ SNOTIFY_WAIT_REPLY /* wait for reply before taking action */ SNOTIFY_UNLOCKPUBSCREEN /* UnlockPubScreen() */ SNOTIFY_BEFORE_UPDATEINTUITION /* Intuition is going to be updated */ SNOTIFY_AFTER_UPDATEINTUITION /* Intuition is updated */
FireScreenNotifyMessageCode((IPTR) screen, SNOTIFY_SCREENDEPTH, flags, IntuitionBase);