Click here to Skip to main content
15,915,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to play .wav file and control speed of the playing .wav file Pin
CraZyToLearn8-Jan-07 1:10
CraZyToLearn8-Jan-07 1:10 
AnswerRe: How to play .wav file and control speed of the playing .wav file Pin
Rajesh R Subramanian8-Jan-07 3:51
professionalRajesh R Subramanian8-Jan-07 3:51 
GeneralRe: How to play .wav file and control speed of the playing .wav file Pin
CraZyToLearn8-Jan-07 18:40
CraZyToLearn8-Jan-07 18:40 
GeneralRe: How to play .wav file and control speed of the playing .wav file Pin
S Douglas8-Jan-07 21:34
professionalS Douglas8-Jan-07 21:34 
AnswerRe: How to play .wav file and control speed of the playing .wav file Pin
Hamid_RT8-Jan-07 17:44
Hamid_RT8-Jan-07 17:44 
QuestionHow to play .wav file and control speed of the playing .wav file Pin
CraZyToLearn8-Jan-07 0:49
CraZyToLearn8-Jan-07 0:49 
AnswerRe: How to play .wav file and control speed of the playing .wav file Pin
Rajesh R Subramanian8-Jan-07 18:39
professionalRajesh R Subramanian8-Jan-07 18:39 
QuestionPost(Thread)Message() and System-wide hooks Pin
PatrykDabrowski8-Jan-07 0:18
PatrykDabrowski8-Jan-07 0:18 
HelloSmile | :)

I've already posted those questions but it was Sunday night so probably nobody had seen it;)

I have a DLL which installs system wide hook using SetWindowsHookEx(WH_Mouse,...), can I use normal PostMessage(main_application_hwnd_handle,...) to inform my application about some event which happend inside this DLL?? I tried it, but it seems not working. PostThreadMessage(main_application_thread_id,...) works fine. In MSDN I couldn't find any information that HWND handle in PostMessage() should belong to the calling process/thread...?

My second question is, how to capture LVM_HITTEST messages, I mean which hook could I use to capture system wide LVM_HITTEST messages? I need also WM_LMOUSEDBLCLK messages which I capture using WH_MOUSE hook. Is it possible to capture those two messages using only one hook? I've partialy solved this problem by sending LVM_HITTEST message to the hooked window from the WH_MOUSE hook, but I don't think it's 'clean' and for sure it generates additional performance hit...

Last question - how to find (in a 'safe and compatible way') HWND to the desktop window "FolderView" of class "SysListView32"? It has a handle 0x10094 but I think I can't hardcode it to my application... Now I use:

HWND h1=::FindWindowEx(NULL,NULL,"Progman","Program Manager");
HWND h2=::FindWindowEx(h1,NULL,"SHELLDLL_DefView",NULL);
m_hwnd_desktop=::FindWindowEx(h2,NULL,"SysListView32",NULL);

is it safe? (single m_hwnd_desktop=::FindWindowEx(NULL,NULL,"SysListView32","FolderView") returns NULL..?!?)

Thanks for any help (and thanks to Naveen R for answering my previous question at 5 o'clock;)

Pat.
QuestionProblem detecting Availability of Network Path Pin
Sudhir Mangla7-Jan-07 23:53
professionalSudhir Mangla7-Jan-07 23:53 
AnswerRe: Problem detecting Availability of Network Path Pin
David Crow8-Jan-07 4:02
David Crow8-Jan-07 4:02 
QuestionQuestion about CFileDialog class Pin
eusto7-Jan-07 23:02
eusto7-Jan-07 23:02 
QuestionRe: Question about CFileDialog class Pin
prasad_som7-Jan-07 23:08
prasad_som7-Jan-07 23:08 
AnswerRe: Question about CFileDialog class Pin
Cedric Moonen7-Jan-07 23:09
Cedric Moonen7-Jan-07 23:09 
QuestionRe: Question about CFileDialog class Pin
Rajesh R Subramanian7-Jan-07 23:10
professionalRajesh R Subramanian7-Jan-07 23:10 
AnswerRe: Question about CFileDialog class Pin
eusto7-Jan-07 23:27
eusto7-Jan-07 23:27 
QuestionRe: Question about CFileDialog class Pin
Rajesh R Subramanian7-Jan-07 23:38
professionalRajesh R Subramanian7-Jan-07 23:38 
AnswerRe: Question about CFileDialog class Pin
eusto8-Jan-07 0:25
eusto8-Jan-07 0:25 
GeneralRe: Question about CFileDialog class Pin
Roger Stoltz8-Jan-07 0:40
Roger Stoltz8-Jan-07 0:40 
GeneralRe: Question about CFileDialog class Pin
eusto8-Jan-07 1:53
eusto8-Jan-07 1:53 
GeneralRe: Question about CFileDialog class Pin
Hamid_RT8-Jan-07 0:41
Hamid_RT8-Jan-07 0:41 
GeneralRe: Question about CFileDialog class Pin
eusto8-Jan-07 1:45
eusto8-Jan-07 1:45 
QuestionRe: Question about CFileDialog class Pin
Rajesh R Subramanian8-Jan-07 3:43
professionalRajesh R Subramanian8-Jan-07 3:43 
AnswerRe: Question about CFileDialog class Pin
eusto8-Jan-07 5:10
eusto8-Jan-07 5:10 
QuestionRe: Question about CFileDialog class Pin
David Crow8-Jan-07 4:08
David Crow8-Jan-07 4:08 
AnswerRe: Question about CFileDialog class Pin
eusto8-Jan-07 7:45
eusto8-Jan-07 7:45 

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.