|
Does anyone know if HDN_BEGINTRACK ever gets sent correctly ? I have a listview in report mode and when I click and drag the header divider, the HDN_BEGINTRACK message is never sent. Is this a known bug ? I looked on MSDN and didn't see much. I am writing in raw Win32, not MFC, if that matters.
|
|
|
|
|
Stupid question, but you're checking for it properly as a WM_NOTIFY message ? Have you tried Spy ++ to see if it gets sent ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Yeah, I checked in spy, and as far as I can tell it never appears to get fired. Which seems rather odd to say the least. What's even weirder, is that HDN_ENDTRACK does get sent, and HDN_TRACKING does not get sent. very frustrating.
|
|
|
|
|
I believe this problem can be caused by HDN_BEGINTRACKW (Unicode) notification sent even if your app doesn't use Unicode and expects HDN_BEGINTRACKA mapped to HDN_BEGINTRACK by preprocessor. There was a similar question some time ago in this forum.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
now In my database,I can get the name of sender and receiver ,
the text the sender send to,the time,and the attachment,
the question is how I can save these information to a *.eml?
any suggestions?
thank in advanve!
|
|
|
|
|
I am looking for a piece of code that might help save me some time. I have a file of raw triangles that define an object that I need to display using OpenGL. I would like to find some code that takes the mesh of triangles and generates GL triangle strips for them.
I have code that generates quad strips from a regular height field but it's not completely applicable. I could attempt to generate a height field from the mesh but I would prefer to not be confined to a regular grid of x-z coordinates.
Anyone seen anything good for this ?
|
|
|
|
|
Check the GNU Triangulated surface at
http://gts.sourceforge.net/
If you look for triangulation, you'll find it there.
Jonathan de Halleux, Belgium.
|
|
|
|
|
Hi every1, i'm working on a file downloading engine presently. my is working properly but,the problem is i have to make it more faster downloading one than the windows downloading dialogue box. I have used vc++ for constructing my dialogue box.Can anyone help me in making such. it should download the file very fast like gozilla. can you plz send in the code, if you have alreadly done it. thank you very much...gopi
|
|
|
|
|
Thre are some Win32 API finctions that take parameters
measured in unions that equal 100[ns].
e.g. functions related to JOB Kernel Objects.
Is it possible for OS to distinguish such a short interval ?
My question is whether the implementation of such a function
checks some registers, or sth. so often (every 100ns) or
it check the condition far (but still often) rarely (i.e
every 1 [ms])
Thanx in advance
Michal Januszczyk
Michal Januszczyk
|
|
|
|
|
They probably use QueryPerformanceFrequency which uses the RDTSC instruction of the Pentium-class processors. It returns the value of the CPU's clock tick counter. The frequency of the counter ranges from 200MHz for Pentium Pros to around 1.2MHz for P2s. This means an effective resolution of about 1uS or 1000nS in the worst case. They just gave themselves a bit of headroom by accomodating ticks of up to 10MHz (a period of 100nS.)
|
|
|
|
|
Hi,
How can I move the edit cursor to the end of a rich edit control?
I need to append text to the end.
Thanks in advance,
Erik Hammar
|
|
|
|
|
I do it in Win32 like this:
::SetFocus (editControl);
::SendMessage (editControl, EM_SETSEL, (WPARAM)length, (LPARAM)length);
::SendMessage (editControl, EM_REPLACESEL, 0, (LPARAM) ((LPSTR) str.c_str()));
I'm sure the MFC class for a rich edit will have methods so you don't need to send messages like this. The basic idea is make the cursor select the end position of the text in there, and then replace the selection ( which is really a caret at the end of the line ) with the text you want to append. length obviously equals the length of the text already there.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Christian,
does this code correct for 8 bpp Bitmap?
WidthBytes=lpBitmap->biWidth/4;
if (lpBitmap->biWidth%4) WidthBytes++;
WidthBytes*=4;
How to use color table for 8bpp bitmap (for pixels)?
I think, RGBQUAD Quad = (LPRGBQUAD) Data;
in this case (for 8bpp) doesn't work
Am i ridht?
|
|
|
|
|
That looks promising. You'd need to then load the palette and look up the colour values based on the indexes. You're right, RGBQUAD will not work for 8/16 bit. To be honest, if it was me, I'd do it the lazy way and convert to a 24 bit DIBSection and then just read the bits off that in memory.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
What functions do i need to convert 8 or 16 bpp bitmap to a 24 bit DIBSection?
|
|
|
|
|
Chris has a nice DIBSection wrapper on this site, you just create a 24 bit DIBSection and select it into a DC, then you can copy it across, and the DIBSection has a pointer to the data.
LMK if you have any trouble, I'll dig it up and write some code for you. You probably don't even need the wrapper, if you go to www.wdj.com, they have an article online of mine from September, the code from which will show you how to create a DIBSection yourself and copy a bitmap onto it and access the bits directly.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
|
I want my applications to "monitor" all keys pressed (or messages in general) in another application. I know it's possible, since Spy++ does exacly that and much more; so how do I do it? I also want it to just monitor one specific application. I guess I'll have to use ::FindWindow() or something?
Please help
Sprudling
|
|
|
|
|
You'll need a hook - docs for SetWindowsHookEx are a good starting point.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
|
Sorry about the Delphi link. Hopefully it's still somewhat helpful.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
|
Visual C++ 6.0 Enterprise Edition, Service Pack 5. I have created SubFolders under my main Project Folder in the ClassView pane. Randomly (from what I can tell), ALL the Classes that I have moved under those SubFolders will move back to the main Project folder whenever I open the project. This is a major pain as I have to keep moving the classes back to the SubFolders in order to keep my project folder from getting to full to use efficiently.
Am I misunderstanding something, or is this a bug ???
The SubFolders I created in the FileView Tab work fine. The files always stay in them.
Anyone have any suggestions ?????????
Thanks, John
|
|
|
|
|
I believe ClassView folder settings are stored in .opt file. Maybe you've deleted it?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I can exit VC++, go right back in, and all the classes will be moved back under the main project folder in ClassView. It doesn't happen every time, but every few days or so. I'm not physically deleting the .opt file or anything. I happens on my Notebook as well as my normal desktop.
Thanks for the input.
|
|
|
|