summaryrefslogtreecommitdiff
path: root/win/basewnd.cpp
blob: 320e38a85d1374e0a941ead06e8452d7dc861654 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// Base window class
//

#include "stdafx.h"
#include "basewnd.h"

BaseWnd::BaseWnd (BaseWnd *parent, int menu_count)
{
  m_pMenuItems = new BaseMenuItem[menu_count];
  m_pParent = parent;
}

BaseWnd::~BaseWnd ()
{
  delete [] m_pMenuItems;
}

static HCURSOR g_hcurWaitCursorRestore; // old cursor to restore after wait cursor

void BaseWnd::BeginWait ()
{
  HCURSOR hcurPrev = SetCursor (LoadCursor (NULL, IDC_WAIT));
  g_hcurWaitCursorRestore = hcurPrev;
}

void BaseWnd::EndWait ()
{
  SetCursor (g_hcurWaitCursorRestore);
}

int BaseWnd::MessageBox (const char* text, const char* caption, int flags)
{
  return m_pXID->MessageBox (text, caption, flags);
}

void BaseWnd::ShowMenuItem (int id, bool show)
{
  /*
	CBMPMenu* pMenu = (CBMPMenu*)GetMainMenu(0);
	CMenu* pMenu = pFrame->GetMenu();
	return pMenu->GetSubMenu(nIndex);
  */
}

void BaseWnd::EnableMenuItem (int id, bool enable)
{
}

void BaseWnd::CheckMenuItem (int id, bool check)
{
}

void BaseWnd::SetMenuItemText (int id, const char *text)
{
}