foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
CClipboardOpenScope

#include <win-objects.h>

Public Member Functions

 CClipboardOpenScope ()
 
 ~CClipboardOpenScope ()
 
void Close ()
 
bool Open (HWND p_owner)
 

Private Attributes

bool m_open
 

Detailed Description

Definition at line 61 of file win-objects.h.

Constructor & Destructor Documentation

CClipboardOpenScope::CClipboardOpenScope ( )
inline

Definition at line 63 of file win-objects.h.

63 : m_open(false) {}
CClipboardOpenScope::~CClipboardOpenScope ( )
inline

Definition at line 64 of file win-objects.h.

64 {Close();}

Member Function Documentation

void CClipboardOpenScope::Close ( )

Definition at line 150 of file win-objects.cpp.

150  {
151  if (m_open) {
152  m_open = false;
153  CloseClipboard();
154  }
155 }
bool CClipboardOpenScope::Open ( HWND  p_owner)

Definition at line 141 of file win-objects.cpp.

141  {
142  Close();
143  if (OpenClipboard(p_owner)) {
144  m_open = true;
145  return true;
146  } else {
147  return false;
148  }
149 }

Field Documentation

bool CClipboardOpenScope::m_open
private

Definition at line 68 of file win-objects.h.


The documentation for this class was generated from the following files: