Basically I call TrackMouseEvent in my WM_CREATE then I call it again after a WM_MOUSELEAVE but this freezes up my program. Where should I be sticking it? Thanks
I want to implement basic spell checking in a Notepad clone project I'm doing. I want to underline misspelled words with a squiggly like like Word does. I think I need to use GDI and draw on the text field, but I'm not sure how to draw on controls.
Thanks
I was wondering how ex Photoshop and Expression Design render sub tools. These show up when for example you hold your mouse down on the fill tool, a sub menu comes up to your right with the fill and gradient tools. I'm just not sure how to go about this because this sub menu would essentially have to be an extension of my toolbar, but then it would find itself on my Frame control. How is this handled? Would it be a good idea to just paint on my frame?
After I use setcontrolfont, the text of the text field does not update. The onnly way I fixed this is by removing then readding all text but this seems hackish. How can I do it properly?
Thanks
I want to make a function in C that can return PI to X places..
ex:
CalcPi(0) = 3
CalcPi(1) = 3.1
CalcPi(2) = 3.14
etc...
I'm just not sure how...
Thanks
Here's what I'm trying to do. I want to use Java Script to send an email. I have created a form with a subject text field, a message field, and a send button. I want for when the person clicks Send that it sends the email, but I want to avoid server side scripting.
Thanks
If I have a straight line that mesures from 0 to 1, then I have colorA(255,0,0) at 0 on the line, then at 0.3 I have colorB(20,160,0) then at 1 on the line I have colorC(0,0,0). How could I find the color at 0.7?
Thanks
I want to create a vector of vector of a vector of double and want it to already have (32,32,16) elements, without manually pushing all of these back. Is there a way to do it during initialization? (I dont care what value gets pushed)
Thanks
I want a 3 dimensional array, first dimension has 32, second dimension has 32 and third dimension has 16 elements
I have a window with its own H and V scrolling. I'm handling the event like this:
case WM_VSCROLL:
SetScrollPos(hWnd, SB_VERT, (int)HIWORD(wParam), TRUE);
break;
all I want is for the position of the scroll bar to stay once I release my mouse but what it's doing is just going back to the top after. What am I doing wrong?
Thanks
Right now I'v created a polygon, then I do the same thing but with line_loop to draw the outline. My issue right now is if I set the line thickness to high, the lines arn't connected. Their ends would need to be (linewidth) longer... is there a way to fix this?
Thanks
I have a function where I provide a pointer to a std::vector.
I want to make x = to vector[element] but i'm getting compiler errors.
I'm doing:
void Function(std::vector<int> *input)
{
int a;
a = *input[0];
}
What is the right way to do this?
Thanks
GDI+ makes use of WCHAR instead of what the WinAPI allows which is CHAR. Usually I can do:
char *str = "C:/x.bmp";
but how do I do this for wchar? I can't juse do
wchar_t *file = "C:/x.bmp");
Thanks
I cannot find how I'm supposed to handle file opening in my program. For example if the user does Open With ... myprogram.exe then how do I handle that and do something with it. which WM_Message is sent?
Thanks
I'm trying to get my application to do something when CTRL+S is pressed. I'm just not sure how the W and L params work for WM_KEYDOWN. MSDN has something about bit fields which i'm not sure about. How can I detect CTRL and S?
Thanks