Any programmers out there that know of an Active X control (or other .exe) which allows the user to select and display a form (say, a .pdf file), mark it up on the tablet pc, and then save the image (the markings combined with the form) in a reusable and easily shared format? I am looking at...
Gee, thanks for all the info. I am going to look over the lower level functions again and see if they will provide me with way to do what I want.
The problem with
PlaySound
Timer
PlaySound
Timer
PlaySound
is that (if they are called in the ButtonWndProc) control is not released to the user...
Well, sorry I frustrated you...
re: your "Second..."
Getting back to my original PlaySound problem, I am trying to play a sound, start a timer in a separate thread, paint a window, return control to the user, and when the timer thread runs out send a message to the UI thread to repeat...
any difference bwtween that and
DWORD ThreadID = GetWindowThreadProcessID(hWnd, NULL);
?
In response to WM_LBUTTONUP, I have used the above and sent &ThreadID to my thread proc:
_begingthread(MyProc, 0, &ThreadID);
and in my thread proc I call:
PostThreadMessage(*pThread, WM_LBUTTONUP...
Will,
I like your idea IF the timers are on a separate thread so that the WndProc can return control to the user after PlaySound and spinning off the timer thread. I seem to recall something, though, about not being able to send messages to the queue from a new thread, so I wonder if calls to...
Well, let me back up a minute...
The reason I want the sounds played separately is so I can call InvalidateRect() between them and "automatically" update the window.
For example, on LBUTTONUP from a Window's child button, initiate the sequence:
Draw the window
Play a sound...
The problem with using the SND_ASYNC flag is that, if you have several sounds playing in a row, each call to PlaySound stops the currently playing sound to play its sound, with the result being only the last call to PlaySound is heard.
Is there a function that checks to see if the audioplayer...
I have tried this, but apparently when the SND_SYNC flag is used, whether in a separate thread or not, the system waits for the sound to finish playing before any other messages are processed. I will try it again, but I am pretty sure this is what I ran up against last night.
Is there a way to use PlaySound() to play several sounds sequentially (as if each call was made with the SND_SYNC flag) but still return contol to the user at the start of playing the first sound? If the SND_ASYNC flag is used, only the last sound will play, of course. What I want to do is...
Hi, I am new to this forum. I am trying to learn how to use CreateDIBSection, BITMAPINFOHEADER, etc. Can someone point me to some sample code for Win32? I program for CE devices, and I am working on how to rotate a bitmap. The CE text I normally use (Boling) is pretty sketchy on the subject...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.