예제 #1
0
파일: notifyarea.py 프로젝트: ksrm/winman
    def __init__(self):
        super(NotificationArea, self).__init__()

        self.items = []

        # Layout
        self.layout = QtGui.QHBoxLayout()
        self.layout.setSpacing(0)
        self.layout.setMargin(0)
        self.setLayout(self.layout)

        # Create tray window class
        hinst = kernel32.GetModuleHandleA(0)
        win.register_window_class(hinst, "Shell_TrayWnd", self.message_handler)

        # Create the window and send the broadcast message
        hwnd = user32.CreateWindowExA(WS_EX_TOPMOST, 'Shell_TrayWnd', '', WS_POPUP, 0, 0, 0, 0, 0, 0, hinst, 0)
        user32.SendMessageA(HWND_BROADCAST, WM_TASKBARCREATED, 0, 0)
예제 #2
0
파일: hotkey.py 프로젝트: ksrm/winman
def start():
    global hotkey_hwnd
    hinst = kernel32.GetModuleHandleA(0)
    win.register_window_class(hinst, "winman.hotkey", _hotkey_message_handler)
    hotkey_hwnd = user32.CreateWindowExA(win32con.WS_EX_TOPMOST, 'winman.hotkey', '', win32con.WS_POPUP, 0, 0, 0, 0, 0, 0, hinst, 0)