P4ListBox.h. #1

  • //
  • guest/
  • YourUncleBob/
  • p4win/
  • main/
  • gui/
  • P4ListBox.h.
  • View
  • Commits
  • Open Download .zip Download (575 B)
#pragma once
typedef int (*PTRFUNC)(UINT flags, CPoint pt);

// CP4ListBox

class CP4ListBox : public CListBox
{
	DECLARE_DYNAMIC(CP4ListBox)

public:
	CP4ListBox();
	virtual ~CP4ListBox();

	int AddString(LPCTSTR s);
	int InsertString(int i, LPCTSTR s);
	void ResetContent();
	int DeleteString(int i);
	int get_width() const;
	void SetRightClkCallback(PTRFUNC f) { m_RightClkCallback = (PTRFUNC)f; }

protected:
	PTRFUNC m_RightClkCallback;

	DECLARE_MESSAGE_MAP()
	afx_msg void OnRButtonUp( UINT flags, CPoint pt );

private:
	void update_width(LPCTSTR s);
	int width_;
};
# Change User Description Committed
#1 19924 YourUncleBob Populate -o //guest/perforce_software/p4win/...
//guest/YourUncleBob/p4win/.....
//guest/perforce_software/p4win/main/gui/P4ListBox.h
#1 16169 perforce_software Move files to follow new path scheme for branches.
//guest/perforce_software/p4win/gui/P4ListBox.h
#1 8562 Matt Attaway These feet never stop running.

Initial commit of the P4Win source code.  To the best of our knowledge this
compiles and runs using the 2013.3 P4 API and VS 2010. Expect a few changes
as we refine the build process. Please post any build issues to the forums.