ghWnd = hwnd;
void AddViewerMenu(HINSTANCE hInstance, nsIWidget* aWidget, LPCTSTR lpMenuName){  HMENU menu = ::LoadMenu(hInstance,lpMenuName);  HWND hwnd = aWidget->GetNativeData(NS_NATIVE_WIDGET);  ::SetMenu(hwnd, menu);}