Type: Posts; User: Ralf Schneider
Search took 0.02 seconds.
April 7th, 2014, 02:21 AM
some users have problems with my app, if they use 2 monitors side-by-side horizontally.
I use CScrolllview with the mapmode HIMETRIC with vc6.
Is this a known problem?
What can I do?
March 25th, 2014, 02:06 AM
ok, but how can I use it together with the mfc-function OnPreparePrinting?
Do I have to overwrite DoPreparePrinting?
March 24th, 2014, 08:30 AM
in my app the user can select the pages to print by typing in a start and an end page.
I think this is the standard dialog.
How can I give the user the possibility to select e.g. page...
March 20th, 2014, 08:08 AM
I am doing drawing!
I can not use a monotype font.
Please tell me more about "estimates based on averages". How can I do that?
March 20th, 2014, 05:10 AM
ok, that is possible.
But no solution for me, because it is a time critical function (I have to obtain the font for many texts).
Maybe I should do this:
I have to pre-calculate the possible...
March 20th, 2014, 02:58 AM
I need the font "Arial". The width for the text "Hello" shoud be 100px.
How do I find/create it?
March 20th, 2014, 01:55 AM
I have a text (singleline) and a fix width for the whole text.
How do I find the correct font (height) for this text?
February 24th, 2014, 10:57 AM
February 24th, 2014, 10:11 AM
sorry, I missunderstand your answer #5.
CreateDragImage creates an imagelist with one item.
I replaced it with a resource bitmap as described in an example on codeproject.com:...
February 24th, 2014, 09:48 AM
I do not see where there is a description on how to that when there are no images in the CTreeView.
February 24th, 2014, 08:18 AM
now, I deleted DrawShowNolock from OnMouseMove.
The result: I drag a black rectangle in the size of an item over the screen.
Is this the image CreateDragImage created for me?
February 24th, 2014, 07:59 AM
ok, I did it like described in many examples with:
But no dragimage appears.
Is it because my CListView do no have icons because it is customdraw?
February 24th, 2014, 06:50 AM
I want to drag an item of a clistctrl in another window.
In all the examples I found the function CreateDragImage is mentioned.
Do I need it?
What do this function?
Do it do something...
February 18th, 2014, 03:26 AM
because no one had an idea, I tried some things I came to this solution:
overwrite the function PreTranslateMessage in CWinApp.
BOOL CMyApp::PreTranslateMessage(MSG* pMsg)
February 17th, 2014, 06:56 AM
please help me with a special behaviour of a CEdit-control in a CDialogBar:
My CDialogBar is a member of my MDI-mainframe-class. The menu of the mainframe have an item with an accelerator...
February 13th, 2014, 10:43 AM
February 13th, 2014, 07:18 AM
I have a problem with creating a process and waiting until the main window of the new process was shown.
I thought I can wait for it with
But when the...
February 12th, 2014, 04:12 AM
That is my problem: in the small project it works!
ok, now it works also in my big project.
A complete rebuilt makes it!
February 12th, 2014, 02:52 AM
I meant not the framework, but my mainframe-class.
February 12th, 2014, 01:25 AM
thx you Victor.
OK, it works.
After looking at your project, I also created a new project and added my Dialogbar-class. It also works (SetStatusText is called)!
I think, that means that the...
February 11th, 2014, 12:17 PM
is it possible that you post your test project?
February 11th, 2014, 11:17 AM
I have win xp und win 7. The test was under win xp.
Now, I set a breakpoint in CFrameWnd::GetMessageString to see the call stack.
I see that my cdialogbar-class is not invoked....
February 11th, 2014, 10:21 AM
I tested it with both: "INT_PTR" and "int".
I tested it with a breakpoint and with the MessageBeep-Sound (see my code) which not appears!
February 11th, 2014, 09:30 AM
this is the class declaration with the test-function:
it is never called.
class CGleisBar : public CDialogBar
CGleisBar(); // standard constructor
February 11th, 2014, 08:31 AM
yes, and I declared it the same way in my class as I told you before:
BOOL SetStatusText(int n);
Anyway, is there something wrong which I did not see?
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.