HideSheetWindow is declared twice in windowmanager. Also, maybe you should change your function pointer types from typedefs to aliases so no casting is required to use them. -- Carlos Santander Bernal