Hey all. I want to be able to display tooltips text in a different codepage from the system's current default codepage (in a non-Unicode OS, such as Windows 98, Windows ME, etc.) Any ideas? Thanks!
Oz Ben Eliezer
Posts
-
Tooltips + Codepage / Owner-drawn -
How can I get the version of RICHED20.DLL?Hey, I need to programatically retrieve the exact file version number of RICHED20.DLL (such as "5.30.23.1205") and the control version (2, 2.1 or 3) How can I do that? I couldn't find the solution in MSDN Library. Thanks in advance.
-
Deleting STL list elementsTry the following: list< double* >::iterator i; while ((i = my_list.begin()) != my_list.end()) { double *p = *i; my_list.pop_front(); delete [] p; }
-
How do I deploy riched20.dll?Hey all. My application (ActiveX Control) requires Rich Edit Control v3. (v2 doesn't right-align correctly from some reason). I couldn't find a redistributable package on MS site. Can I just pick up the riched20.dll on my computer, along with 2 or 3 DLLs it depends on, and deploy them on the clients' machines (if they don't have a newer DLL)? Or is it somehow dangerous / illegal / etc.? Thank you!
-
Right-aligning with WS_EX_RTLREADINGI can't thank you enough! That's the cause... Everything works great with Rich Edit Control 3, but not-so-great with version 2. Do you have any idea WHY version 2 doesn't right-align correctly? Thanks!
-
Right-aligning with WS_EX_RTLREADINGHey all. I use CreateWindowEx to create a Rich Edit Control. I use WS_EX_RIGHT | WS_EX_RTLREADING to make it right-aligned on a Hebrew OS. It works well on Windows 2000, but on a clean installation of Win98 Heb-enabled, the content of the Rich Edit Control is left-aligned. On a not-so-clean installation of Win98 (which has Visual Studio, Office, etc.) - it displays correctly. The problem is not with comctl32.dll - copying that file from the "good" win98 to the "bad" win98 doesn't solve it. Any ideas??
-
I'm a total fraud!!! God am I a newbie!!! :)Shouldn't it be
delete [] pBody;
instead ofdelete pBody;
? -
Programmatically setting IE's homepage (how?)Thank you - but is this path correct for all versions of IE? (4+, actually) - and is it guranteed to remain correct for future versions? Or - is there some (COM?) API I can call to do it for me?
-
Programmatically setting IE's homepage (how?)Hey all, How can I set IE's homepage using C++ code? (Like ICQ does when you install it) Thanks! Oz
-
Urgent: ActiveX and repaint issues.Hey all! I'm semi-desperate. I developed an ActiveX control that runs within IE, using ATL. In it, I use owner-drawn controls and common controls (listview, tabbed control). Sometimes (more often on win98 than on win2k / xp), when a dialog (generated by the ActiveX or by another application) covers part of the ActiveX, and then is removed (closed, not dragged away) - some (or all) of the area that was previously covered is not repainted. This behavior startled me - so I decided to use remote debugging, to hunt down the WM_PAINT and related messages. I was able to recreate a procedure during which a dialog covered part of the ActiveX - and when I removed it - one of the owner-drawn buttons was not repainted (a grey rectangle appeared instead of the button's image). I put a breakpoint inside ATL's ProcessWindowMessage (the function that is inserted by the BEGIN_MSG_MAP() macro). After dismissing the dialog - NO MESSAGES WHATSOEVER were sent to the application! I also noticed that sometimes when a convering window is closed and the ActiveX seems to be properly repainted - no messages are received (as if Windows "remembered" the content of the control). Sometimes even tooltips leave a grey rectangle behind them when they disappear! (this happens a lot in Win98). The ActiveX control has its own HWND. Im not sure I fully understand the way the ActiveX control receives messages. Does its window receives messages directly from Windows, or do messages somehow pass through IE? And at any case - can anyone offer a solution to this problem? (or at least give me a lead...) Thanks a lot in advance! Oz
-
DLL mandatory with EXEHey, I have a related question. How do you deal with Unicode issues? I think (am I wrong?) that some system (or at least Microsoft) DLLs come in two flavors - Unicode and ANSI. Suppose that my application is compiled as an ANSI application, and I want to distribute it with a set of compatible DLLs - how do I avoid overwriting ANSI versions of DLLs with Unicode versions, and vice versa? Also - where can I find the redistributable DLLs? (MS surely doesn't expect me to copy them from my HD, do they?) Thanks!
-
ODBC API, BLOBsHey, Does anyone know about a quality resource that would show me how to store and retrieve BLOBs (specifically, an image) to and from a database? (In MS-SQL Server 7/2000, using ODBC). Thanks! Oz