The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MPColorTrackerApp.cpp File Reference

#include "stdafx.h"
#include "resource.h"
#include <atlbase.h>
#include <streams.h>
#include <initguid.h>
#include "DirectShow/MPDirectShow.h"
#include <cstdio>

Include dependency graph for MPColorTrackerApp.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define MAX_LOADSTRING   100
#define WM_GRAPHNOTIFY   WM_APP + 1

Functions

LRESULT CALLBACK About (HWND, UINT, WPARAM, LPARAM)
void HandleEvent ()
BOOL InitInstance (HINSTANCE, int)
void Msg (TCHAR *szFormat,...)
ATOM MyRegisterClass (HINSTANCE hInstance)
int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM)

Variables

BYTE bReturnImmediatelyFromCallback = 0
HINSTANCE hInst
MPDirectShow m_directShow
TCHAR szTitle [MAX_LOADSTRING]
TCHAR szWindowClass [MAX_LOADSTRING]


Define Documentation

#define MAX_LOADSTRING   100
 

Definition at line 12 of file MPColorTrackerApp.cpp.

#define WM_GRAPHNOTIFY   WM_APP + 1
 

Definition at line 37 of file MPColorTrackerApp.cpp.


Function Documentation

LRESULT CALLBACK About HWND  ,
UINT  ,
WPARAM  ,
LPARAM 
 

void HandleEvent  ) 
 

Definition at line 167 of file MPColorTrackerApp.cpp.

00168 {
00169 
00170 }

BOOL InitInstance HINSTANCE  ,
int 
 

void Msg TCHAR *  szFormat,
  ...
 

Definition at line 261 of file MPColorTrackerApp.cpp.

00262 {
00263     TCHAR szBuffer[1024];  // Large buffer for very long filenames (like HTTP)
00264 
00265     // Format the input string
00266 
00267         va_list pArgs;
00268     va_start(pArgs, szFormat);
00269     _vstprintf(szBuffer, szFormat, pArgs);
00270     va_end(pArgs);
00271 
00272     // Display a message box with the formatted string
00273     MessageBox(NULL, szBuffer, TEXT("First Grab Sample"), MB_OK);
00274 }

ATOM MyRegisterClass HINSTANCE  hInstance  ) 
 

int APIENTRY WinMain HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nCmdShow
 

Definition at line 48 of file MPColorTrackerApp.cpp.

References InitInstance(), MAX_LOADSTRING, MyRegisterClass(), szTitle, and szWindowClass.

00052 {
00053         // TODO: Place code here.
00054         MSG msg;
00055         HACCEL hAccelTable;
00056 
00057         // Initialize global strings
00058         LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
00059         LoadString(hInstance, IDC_MPCOLORTRACKERAPP, szWindowClass, MAX_LOADSTRING);
00060         MyRegisterClass(hInstance);
00061 
00062         // Perform application initialization:
00063         if (!InitInstance (hInstance, nCmdShow))
00064         {
00065                 return FALSE;
00066         }
00067 
00068         hAccelTable = LoadAccelerators(hInstance, (LPCTSTR)IDC_MPCOLORTRACKERAPP);
00069 
00070         // Main message loop:
00071         while (GetMessage(&msg, NULL, 0, 0))
00072         {
00073                 if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
00074                 {
00075                         TranslateMessage(&msg);
00076                         DispatchMessage(&msg);
00077                 }
00078         }
00079 
00080         return msg.wParam;
00081 }

Here is the call graph for this function:

LRESULT CALLBACK WndProc HWND  ,
UINT  ,
WPARAM  ,
LPARAM 
 


Variable Documentation

BYTE bReturnImmediatelyFromCallback = 0
 

Definition at line 42 of file MPColorTrackerApp.cpp.

HINSTANCE hInst
 

Definition at line 15 of file MPColorTrackerApp.cpp.

MPDirectShow m_directShow
 

Definition at line 39 of file MPColorTrackerApp.cpp.

TCHAR szTitle[MAX_LOADSTRING]
 

Definition at line 16 of file MPColorTrackerApp.cpp.

TCHAR szWindowClass[MAX_LOADSTRING]
 

Definition at line 17 of file MPColorTrackerApp.cpp.


Generated on Mon Nov 8 17:08:13 2004 for MPT by  doxygen 1.3.9.1