|
I want to get the chunk-size in a http1.1 message, who can tell me how to do?
|
|
|
|
|
Hi,
I've implemented a window with 3 different listviews in plain WIN32. Between those 3 there's a little gap. The user can resize these listviews by dragging the gap. I handle this dragging in the WM_MOUSEMOVE message and everything works fine as long as I don't drag too fast.
I think I loose the focus to one of the listviews if I drag too fast. All messages are then sent to the listview instead of the main window.
Someone any idea how I can solve this?
Thanks...
|
|
|
|
|
You can call the SetFocus API to keep focus in your main window.
|
|
|
|
|
You can call the SetCapture API to keep focus in your main window.
|
|
|
|
|
Hey Guys,
I'm working on an SDI project that uses some gif import files. This comes from artwork done with Adobe Illustrator. I am wondering is it possible to import vector graphics into an MFC project and illustrate them?
Best Regards
Danny Nowlan
|
|
|
|
|
If they are vector graphics, they are not gifs.
Yes, they are called Metafiles. Good luck getting them to work.
|
|
|
|
|
If the vector part is where you're confused, if you have raster images that are gifs, read my articles on how to use GDI+.
|
|
|
|
|
I'm Confused, are you importing GIF files or Illustrator native files ( vector )?
if they are GIF, there are tons of code that can be found here or with google that will do this.
if they are Illustrator file, then you will have to do a bit more coding to support vector display in your application, and vector file import; I don't know if Adobe has a SDK to read those files.
|
|
|
|
|
hi
i have two buttons on my dialog and an edit box. i need the buttons to move the cursor in the edit box left and right. how do i do it.its just like the left and right arrow keys of the keyboard. without using WM_KEYDOWN.
thanks
|
|
|
|
|
Preeti Mishra wrote: without using WM_KEYDOWN.
You can use WM_KEYUP or WM_CHAR, if you have an aversion to WM_KEYDOWN.
|
|
|
|
|
Ooops - I misread. The edit box has a property which specifies the cursor pos, I think it's selectionstart, but I could be wrong. That's what you need to change.
|
|
|
|
|
i'm not gettin it.
can you give me the code?
|
|
|
|
|
The other guy is right, I was thinking of .NET. You call GetCaretPos to find out where it is, change the number and call SetCaretPos to move it.
|
|
|
|
|
Preeti Mishra wrote: need the buttons to move the cursor in the edit box left and right.
Take a look at the following functions...
SetCaretPos, GetCaretPos, HideCaret, ShowCaret
|
|
|
|
|
If you really want it to work like left and right arrows, I don't think your want to use the caret functions.
Instead, use EM_GETSEL to find the current position, increment or decrement the postion variable, and use EM_SETSEL to set the new position.
int nStart, nEnd;<br />
::SendMessage( hwndEdit, EM_GETSEL, (WPARAM) &nStart, (LPARAM) &nEnd);<br />
<br />
nStart--;<br />
<br />
or...<br />
<br />
nStart++;<br />
<br />
::SendMessage( hwndEdit, EM_SETSEL, (WPARAM) nStart, (LPARAM) nStart );<br />
If you're using MFC, use GetSel and SetSel.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
can you give me the code?
|
|
|
|
|
Preeti Mishra wrote: can you give me the code?
You can find samples in MSDN . Just search through MSDN .
Even the documentation for SetCaretPos has got samples attached to it. Scroll through it and see.
|
|
|
|
|
the member variable of the edit box doesn't take GetCaretPos() or SetCaretPos().
|
|
|
|
|
Preeti Mishra wrote: GetCaretPos() or SetCaretPos().
Caret is a shared resource. A window should have the caret blinking inside it to move it. Since SetCaretPos is a member of CWnd so all classes inheriting from CWnd can access this function. I don't know why you can't access.
Before working on carets read through this article[^]. This will help you understand better what carets are. It's very interesting.
|
|
|
|
|
thanks for the help... i'll try and get back. thanks.
|
|
|
|
|
Preeti Mishra wrote: can you give me the code?
What is it with people on here? Do they think we have nothing better to do than sit in front of the computer waiting for somebody to ask us to write code for them?
I will say it once again. Do the work yourself! If it doesn't work, then show us what you did, maybe we can help you fix it. But under no circumstances would anybody on here hand out code, especially not after a question like "Can you give me the code", and certainly not if you want to be cheeky enough to not even say 'please'!
|
|
|
|
|
very correct... i vote in full for your post..
|
|
|
|
|
When we connect VC++ with Mysql libMysql.lib error
but when we download Mysql there is not any library
how we manage is
Please help me
mailing me
Yogendra
|
|
|
|
|
You're getting an error sayng you need a lib ? MySQL probably doesn't come with it, there's probably an SDK you need.
|
|
|
|
|
yogikaushik wrote: When we connect VC++ with Mysql libMysql.lib error
Did you try googling the error? I did and there are lots of results. Google: libMysql.lib[^]
There are a couple of hits that talk about the exact issue your having.
Good luck
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|