First create a unique mutex (with some guid)in your InitInstance() method.Then check GetLastError value.if you get the error saying mutex already exist then use FindWindow API with your class name and your window name to window the existing window handle.The use ShowWindow API with that handle,and return from it.
Bored of explanation then look this algorithm,
::CreateMutex(NULL, false, TEXT("UniqueMutexName"));
if (::GetLastError() == ERROR_ALREADY_EXISTS)
{
HWND hMyPrevWnd = ::FindWindow(YourClass, YourWindoName);
if(hMyPrevWnd != NULL)
{
::ShowWindow(hMyPrevWnd, SW_SHOW);
}
}