Click here to Skip to main content
15,880,392 members
Articles / Desktop Programming / MFC

PicZoom: A Photo Viewer Created in OpenGL

Rate me:
Please Sign up or sign in to vote.
4.86/5 (63 votes)
16 Feb 2011CPOL16 min read 159.9K   11.6K   150  
PicZoom: A Photo Viewer created in OpenGL
#include "StdAfx.h"
#include "GLWindowBase.h"

GLWindowBase::GLWindowBase( HWND hParentWindow_i )
{
    m_hParentWindow = hParentWindow_i;
    m_bVisible = false;
    m_nWidth = 0;
    m_nHeight = 0;
}

GLWindowBase::~GLWindowBase(void)
{
}

bool GLWindowBase::OnMouseMove( const int nX_i, const int nY_i, const int nFlags_i )
{
    return false;
}
bool GLWindowBase::OnLButtonDown( const int nX_i, const int nY_i, const int nFlags_i )
{
    return false;
}
bool GLWindowBase::OnLButtonUp( const int nX_i, const int nY_i, const int nFlags_i )
{
    return false;
}
bool GLWindowBase::OnMouseWheel( const int nX_I, const int nY_i, const UINT nFlags, const short zDelta )
{
    return false;
}
bool GLWindowBase::Draw()
{
    return false;
}

void GLWindowBase::SetRegion( const int nWidth_i, const int nHeight_i )
{
    m_nWidth = nWidth_i;
    m_nHeight = nHeight_i;
}

void GLWindowBase::SetVisibility( const bool bVisible_i )
{
    m_bVisible = bVisible_i;
}

bool GLWindowBase::SetupWindow()
{
    return false;
}

void GLWindowBase::SetName( const CString csWindowName_i )
{
    m_csWindowName = csWindowName_i;
}

CString GLWindowBase::GetName()
{
    return m_csWindowName;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions