|
m_MyEdit.SendMessage(WM_VSCROLL,MAKEWPARAM(SB_BOTTOM,0));
this is this.
|
|
|
|
|
Thanks for your reply.
Im using the code .....
CEdit* pMyEditCtrl = (CEdit*)GetDlgItem(IDC_MyEditCtrl);
pMyEditCtrl->SendMessage(WM_VSCROLL,MAKEWPARAM(SB_BOTTOM,0));
This seems to work, but I need to send the WM_VSCROLL message after each time I set the Edit control text with SetDlgItemText( ). I thought I would be able to set this bottom scroll property once and it would remain static.
Any thoughts??
|
|
|
|
|
adrian27 wrote:
I thought I would be able to set this bottom scroll property once and it would remain static.
Not quite. The code fragment doesn't set a property - it sends a message (i.e. instructs the edit control to scroll to the bottom).
See this[^] article for a self-contained solution.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
adrian27 wrote:
I've placed an Edit control on my dialog and attached a CString member variable to it...
Use a CEdit member variable instead. Global variables are rarely, if ever, needed.
For the rest, see here.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I put a picture control (type:rect) in a dialog, and associated it with a CStatic object. I find it doesn't refresh itselt when a window uncovered it.
|
|
|
|
|
So what happens when the static control is uncovered?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
What I drew on the static's client is not refreshed, the client became what it was originally.
|
|
|
|
|
followait wrote:
What I drew on the static's client...
How and where are you drawing on the static's client?
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I put a picture control (type:rect) in a dialog, and associated it with a CStatic object. I find it doesn't refresh itselt when a window uncovered it.
|
|
|
|
|
hey,
I am working on a drawing application...my drawing area has a height of 400 pixels, x-axis is 600 pixels(scaled: 1 sec=2pixels)...
I am having problem, scaling the y-axis to plot larger values e.g. 2000..
must use default maaping mode(pixels)
how to do it...( need a tested equation...)
|
|
|
|
|
Respected All
------------------------------------
I already sent related query but here a bit explanation.
I have to load a bitmap in picturebox
and let say my bitmap is in
"C:\\my pictures\\bmp1.bmp"
now i want that when i execute my prgram then there is button say "PRESS ME" on main dialog and when i press the button then the above BMP display on the dialog which have already a picture box for loading a bitmap,remember i dont want to load directly on dialog,but i want to load bitmap in picturebox.
Plz help me through MFC code b/c I am suffereing alot from this.
david
|
|
|
|
|
HBITMAP h;<br />
h = (HBITMAP)LoadImage(NULL,"C:\\my pictures\\bmp1.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE | LR_DEFAULTSIZE);<br />
m_Static.SetBitmap(h);
this is this.
|
|
|
|
|
Hai All..
Is there a function to enable the LAN and other WLAN adapters automatically rather than opening the network and dial-up connection and enabling them by right cliking and enabling.If no such direct function call is there do anyone have any idea to enable it programatically.
With Rdgs
|
|
|
|
|
i am building this 3D maze and i want to use MFC with open gl.does anyone know where i can get the tutorials.
|
|
|
|
|
refer tutorials on GLUT. let google help u out
Do first things first, and second things not at all. —Peter Drucker.
|
|
|
|
|
Greetings!
I am writing an SDI application where I am dividing the pane into two, using CSplitterWnd . I am also opening up child windows in one of the panes.
My problem is - when the child windows get displayed in the splitter window pane, they appear as if they are inactive windows - even if I click on the window, the window's title bar doesnt gets painted as if it were active. This is causing a lot of problems; especially when multiple child windows are opened.
Can anyone help me out on this. I want the window to appear focussed when it gets the focus.
Do first things first, and second things not at all.
—Peter Drucker.
|
|
|
|
|
Hi:
In MFC, I could save the toolbar's state to registry by calling function CToolBarCtrl::SaveState, but how to save the toolbar's state to an ini file? Sometimes,I don't want to use registry , Could you give me some idea? Thanks very much!
Thanks
Benben
|
|
|
|
|
You can get the state of each button and save in a vector or list or array and serialize it. For Example,
Use GetButtonCount(), to get the total number of buttons on the toolbar and then use GetState() for getting the state of each button and store in a vector and serialize it.
Don't forget to rate the replies if it helps you.
|
|
|
|
|
Hello ,
How to set the range of spin control to a 32 bit value ?
I am using ,
m_spin1.SetRange32(0,LIMIT(32));
where LIMIT is
#define LIMIT(x) (1<
|
|
|
|
|
dhawan_boss@yahoo.com wrote:
m_spin1.SetRange32(0,LIMIT(32));
where LIMIT is
#define LIMIT(x) (1<<x)-1< i="">
What? Use this instead:
m_spin1.SetRange32(0, INT_MAX); If you absolutely need more than that, you'll have to scale the range and position down. The most common is based on a 100% scale.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
In many classes i had see member functions related with Notification, What is it and what for is it used?
Thanks a lot.
|
|
|
|
|
|
How can I customize scrollbar?
Is there any OwnerDraw for CScrollBar?
- NS -
|
|
|
|
|
Hi,
See this screen-shot: http://www.baygenie.com/images/setup.png
I've seen this type of setup wizard a lot, but I don't know which software produces this.
Can anyone please tell me? Thank you!
Jason
|
|
|
|
|
Jason Liu wrote:
but I don't know which software produces this.
What about :-
INNO SETUP[^] and it's freeeeeeeeeeeeeeeeeeee....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|