Tha "static" approach was just a desparate attempt. I searched the site for initialization of arrays in a class object with various wordings on the search and could not find anything. My C++...
I am trying to initialize an array (julian days by month) when an instance of a class object is created. I have no idea how to do this. have tried the standard approach of initialization as done in...
I am not sure, but I think the message at the win32 level is WM_CTLCOLORxxx where xxx stands for a bunch of different items. I have always thought the only way you could color the text of a button is...
I noted something else that surpised me. In the debugger I put a break in the message loop if the message was a WM_DESTROY or a WM_COMMAND and wParam IDCANCEL. THen I put another break in the...
Yes it is, or at least something like that. I tried that approach using many message combinations, and via the debugger got to stop on a message. But the "break" did not succeed in exiting the...
In many cases I would not be concerned about the overhead, but in this case it is in a high priority thread which runs continuously and is a big CPU drain. It gets called at the sample rate (48K)...
Yes, it worked. Thread A knows of 'b' since it is a global instance (the process runs continuously in the background monitoring the received radio signal).
Hmmm. Didn't really think of that approach. But again, it really looks like the singleton class of this shared event is still just a global...except that it is protected (I couldn't set it to a...
In Thread A I want to wait for the value of some parameter in Thread B to be set to a certain value and if it doesn't happen in 10 seconds, the wait is terminated.
The problem is in the subclassing (otherwise it doesn't happen). I have found a work around. After I call the 'SetWindowText()' API function I post a WM_KEYDOWN message and fake an arrow key of my...
Did that already, but it doesn't help. The problem comes from a 'SetWindowText()' API function used in the subprocedure. When a WM_CHAR message is received, the standard handler is used, but after...
I have a multiline, numerical only non-rich edit box with right allignment. But when I enter a digit, the first digit appears rightmost (as it should) but the cursor jumps to the beginning of the...
You use the Mixer API functions. That interface is a real pain in the hindquarters. But it is what you are stuck with if you want to make your own Volume Control, just like the Windows volume...
Humpty Dumpty: Yes, I understand that what you do is one approach, but I do not know how Windows does it. I believe there must be some flag that tells windows to do whatever technique it uses to...
Well, it should prevent switching back to the parent window (the action taken to create the modal dialog). For example, the good old message box. When you get one of those, you can't go back to the...
Yes, I only want to create a single instance of the dialog from a given parent. At first I didn't want to be able to anything but handle that dialog, (not even go to other "parent" windows) but I am...