Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual Basic sendmessage Pin
soul.ripper25-May-04 11:19
soul.ripper25-May-04 11:19 
GeneralRe: Visual Basic sendmessage Pin
David Crow26-May-04 2:13
David Crow26-May-04 2:13 
GeneralRe: Visual Basic sendmessage Pin
soul.ripper29-May-04 7:29
soul.ripper29-May-04 7:29 
GeneralRe: Visual Basic sendmessage Pin
David Crow31-May-04 9:22
David Crow31-May-04 9:22 
GeneralactiveX control - using CListCtrl Pin
BlackDice24-May-04 10:44
BlackDice24-May-04 10:44 
GeneralRe: activeX control - using CListCtrl Pin
Dimitris Vasiliadis24-May-04 12:05
Dimitris Vasiliadis24-May-04 12:05 
GeneralRe: activeX control - using CListCtrl Pin
BlackDice25-May-04 6:00
BlackDice25-May-04 6:00 
GeneralGetSaveFileNamePreview Pin
Andy Moore24-May-04 9:44
Andy Moore24-May-04 9:44 
Hi,

I am trying to use GetSaveFileNamePreview to show a preview of the selected AVI movie. When I call GetSaveFileNamePreview I see the typical explorer-style dialog but no control to preview the movie. Is there something special that I need to add to make this happen?

Here is a code snippet:

OPENFILENAME ofn;
DWORD dwWinMajor;

dwWinMajor = (DWORD)(LOBYTE(LOWORD(::GetVersion())));

::ZeroMemory(&ofn, sizeof(OPENFILENAME));

TCHAR szFile[MAX_PATH];
TCHAR szFileTitle[MAX_PATH];

::ZeroMemory(&ofn, sizeof(ofn));

_tcscpy(szFile, this->m_sFileName);

if((BYTE)dwWinMajor >= 5)
{
/*Add 12 bytes to OPENFILENAME on Win2K or greater*/
ofn.lStructSize = sizeof(OPENFILENAMEEX);
}
else
{
ofn.lStructSize = sizeof(OPENFILENAME);
}
ofn.hwndOwner = ::GetActiveWindow();
ofn.lpstrFile = szFile;
ofn.lpstrFilter = TEXT("AVI Files (*.avi)\0*.avi\0");
ofn.nMaxFile = (DWORD)_tcsclen(szFile);
ofn.nFilterIndex = 1;
ofn.lpstrFileTitle = szFileTitle;
ofn.nMaxFileTitle = sizeof(szFileTitle);
ofn.lpstrInitialDir = NULL;
ofn.lpstrDefExt = TEXT(".avi");
ofn.lpstrTitle = TEXT("Save AVI Movie As");
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_EXPLORER | OFN_OVERWRITEPROMPT;

if(::GetSaveFileNamePreview(&ofn) == TRUE)
{
/*Do something here*/
}

Thanks for your help,

Andy


GeneralDouble buffering with GDI+ Pin
Jorgen E.24-May-04 8:49
Jorgen E.24-May-04 8:49 
GeneralRe: Double buffering with GDI+ Pin
567890123424-May-04 19:28
567890123424-May-04 19:28 
GeneralRe: Double buffering with GDI+ Pin
Jorgen E.25-May-04 3:30
Jorgen E.25-May-04 3:30 
GeneralRe: Double buffering with GDI+ Pin
567890123425-May-04 4:06
567890123425-May-04 4:06 
GeneralRe: Double buffering with GDI+ Pin
Jorgen E.25-May-04 4:45
Jorgen E.25-May-04 4:45 
GeneralRe: Double buffering with GDI+ Pin
567890123425-May-04 5:05
567890123425-May-04 5:05 
GeneralRe: Double buffering with GDI+ Pin
Jorgen E.25-May-04 5:12
Jorgen E.25-May-04 5:12 
GeneralRe: Double buffering with GDI+ Pin
567890123425-May-04 5:17
567890123425-May-04 5:17 
GeneralRe: Double buffering with GDI+ Pin
Jorgen E.25-May-04 5:22
Jorgen E.25-May-04 5:22 
GeneralRe: Double buffering with GDI+ Pin
567890123425-May-04 5:43
567890123425-May-04 5:43 
GeneralRe: Double buffering with GDI+ Pin
Jorgen E.25-May-04 6:01
Jorgen E.25-May-04 6:01 
GeneralRe: Double buffering with GDI+ Pin
567890123425-May-04 6:46
567890123425-May-04 6:46 
GeneralRe: Double buffering with GDI+ Pin
Jorgen E.25-May-04 6:55
Jorgen E.25-May-04 6:55 
GeneralRe: Double buffering with GDI+ Pin
Jorgen E.23-Jun-04 8:21
Jorgen E.23-Jun-04 8:21 
QuestionHibernate event on WinXP ? Pin
Cris24-May-04 8:36
Cris24-May-04 8:36 
AnswerRe: Hibernate event on WinXP ? Pin
Graham Bradshaw24-May-04 13:37
Graham Bradshaw24-May-04 13:37 
GeneralReading .PSD file Pin
nachilau24-May-04 8:27
nachilau24-May-04 8:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.