|
The coordinates in an RC file are expressed in dialog units. See here[^] for details on how to deal with them. Alternatively use place-holders in the .rc file and then use the GetWindowRect and MapWindowPoints APIs to get the coordinates in pixels (relative to the window's client area).
Steve
|
|
|
|
|
Oh thanks pal, you da man. I went for the placeholder like solution as it was quicker for me in this case, but next time I run into this (which I'm sure is soon), I'm going to follow the article.
|
|
|
|
|
I normally go for the place-holder solution myself.
Steve
|
|
|
|
|
Vs2005, XP Sp2. After reading lots of pages about MFC dlls and deployment and module state and memory and ..., here my question:
I have a plug-in dll, that is a "normal" Dll with MFC linked dynamically (and loaded by a third-party MFC app).
This dll uses:
- two resource dll, loaded at runtime (for changing language of dialogs) and that do not use MFC and do not contain code.
- two normal dll, delay loaded, with MFC linked dynamically.
- one win32 dll, delay loaded, with no MFC.
- one lib, statically linked, with MFC linked dynamically (actually this could as well be an MFC extension dll, I do not know the difference).
The whole makes extensive use of threads. Currently, this is compiled with the /MT option, as multithreaded (but for the lib, obviously). Should not everything be compiled as Multithreaded dll (/MD ?) Which Pre-processor definition are needed ? _DLL ? _AFXDLL ? _USRDLL ? What is the difference ?
When and in which projects should I use AFX_MODULE_STATE ?
Background: Debug version works perfectly, Release version is slow (some sync problems between threads probably). I came to suspect the project not to be build adequately, after observing that changing the thread priorities did not help. I also have one dialog that crashes when "DoModaled", supposely something goes wrong with state modules somewhere.
Thanks for your time, this bugs me.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
hi
I want to know How much data can be stored by CString Type varible.My actual problem is I want to show the data of file in edit box if file is of 120 mb all the data is shown by the command
GetDlgItem(ID of edit box)->SetWindowText(CString Type Variable);
but is file is big all data is not shown
|
|
|
|
|
rajneshmalik wrote: I want to know How much data can be stored by CString Type varible.
Probably depends of your system memory since CString allocates the internal buffer on the heap, I suppose. but
rajneshmalik wrote: I want to show the data of file in edit box if file is of 120 mb all the data is shown by the command
does the above really make sense?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
theoretically, up to 2GB.
|
|
|
|
|
What about the text limit of the CEdit control? The default limit is something like 64K iirc, have you set the limit of that large enough to view 120mb worth of text?
|
|
|
|
|
Jimmanuel wrote: What about the text limit of the CEdit control? The default limit is something like 64K iirc...
It depends on the OS. Win98 and before had a 64KB limit.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Then use a CRichEdit control.
That being said, it is horrible design to put 120Mb into an edit control
|
|
|
|
|
Perhaps you meant to reply to the OP.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello friends,
If i m using VC++ and i want to rotate soem text on GUI like a Marquee in HTML.. how can i do it??
Could you plz help me out?
Megha
|
|
|
|
|
You can use of WM_TIMER for it.
|
|
|
|
|
|
Hello,
I am looking for a VC++ dynamic DLL loading sample without MFC class.
I work with Visual C++ 2005 Express, then I cant compile MFC.
I have found some articles about C++ dynamic DLL loading on Code Projet, but so fare all needed MFC.
Thanks,
Tintin92
|
|
|
|
|
|
hi
i want to tranfer data using data copy.
I want to tranfer a vector. how can i do that
thanks
gayatri s
|
|
|
|
|
Please elaborate.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Can you be more specific.
|
|
|
|
|
If you mean WM_COPYDATA when you say data copy, see here[^] for an example.
And please be very clear on what you want.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Transfer from where? To where?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Dear all,
Is it possbile show the formview dialog(which as some controls) whenever i press the menu item in an SDI application. And this formview dialog should be act as modeless dialog...
Manjunath S
GESL
Bangalore
|
|
|
|
|
Do you want to have other CFormView ?
|
|
|
|
|
In my SDI application , there is menu item named "BPB"
when i press it should display a set of the read only edit box with some static headings
since CFormView handles the scroll by itself i planned to use it, Is it possible to use
CFormView for this type of display, Actually i get the data from one of the structure that should be displayed in the read only edit box.
Manjunath S
GESL
Bangalore
|
|
|
|
|
Do you want your program scroll itself ?
|
|
|
|