|
of course, my answer was just an example...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
I'm trying to modify a html page using the CHtmlView class. I've overidden the onBeforeNavigate2 class and I get the document using GetHtmlDocument(). I then add some content to the page and that's when I get lost. How do I redisplay the page with the additional content.
Thanks in advance,
Ron
|
|
|
|
|
|
Neville,
Yes I've checked the articles at CP. I can create the view and edit the pages but can't seem to display the modified files.
I'll check Ehsan's articles,
Thanks for the help,
Ron
|
|
|
|
|
Hi Ron,
rlepine wrote:
I'll check Ehsan's articles,
I'm pretty sure you'll find what you need here. If not make another post.
In Surfulater I build the html on the fly and basically put it back into the view using PutinnerHTML().
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
Here is from MSDN
OnMouseMove
point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.
OnMouseWheel
pt
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the screen.
Why is it that when I have the screen print out last known OnMouseMove point in OnMouseWheel the value is totally different from OnMouseWheel's pt? The value should be the same because cursor is still at the same location.
|
|
|
|
|
Because "Upper Left Corner of Screen" is NOT necessarily equal to "Upper Left Corner of Window". In most cases it is NOT equal.
See MapWindowPoints and ScreenToClient/ClientToScreen for converting points.
|
|
|
|
|
Is there a way to determine if the scroll bar reach it's min and max?
|
|
|
|
|
Currently I am using GetScrollClip. Finding min is easy but find max would require a lot of work.
The other problem is OnMouseWheel doesn't get the Scroll change until after it's completed.
|
|
|
|
|
See the GetScrollInfo function...
The GetScrollInfo function retrieves the parameters of a scroll bar, including the minimum and maximum scrolling positions, the page size, and the position of the scroll box (thumb).
|
|
|
|
|
Hi,
I'm working on an Outlook Add-in written in VC++. My problem is that I have to add some buttons to a toolbar, and the only way (I know) to set icons to them is using PasteFace. By doing this, I have to use the clipboard, and I loose everything that I had in there. Is there any way I can somehow save this data (from the clipboard) in a buffer, and after pasting the images, to put the initial data back into the clipboard.
Any ideas or suggestions would be most welcome.
Thanks,
Doru
|
|
|
|
|
If the clipboard data is in a format/formats you understand, then yeah, you could probably hack it. Since just about anyone can put just about anything in the clipboard though, it's unlikely you'll get this working across the board without a huge amount of effort.
Shog9
I'm not the Jack of Diamonds... I'm not the six of spades.
I don't know what you thought; I'm not your astronaut...
|
|
|
|
|
This is a rather vague question so my answer may not be totally applicable. Use AppWixard to create a dialog-based application. On the dialog template, put an edit box and a button. Use ClassWizard to assign member variables, CEdit and CButton respectively, to these controls. Provide a handler function for the button. In that function, obtain the search text from the edit control by using CEdit::GetWindowText() . Once you get this far, we can then discuss how to search a database.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
hum, i can't find the english word that express my thinking, so, smileys will represent my mind :
i'm felling Mr Crow (Deyyyvid Crow) is a little bit about Mr Zumbi...
am i so far of the reality ???
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Your atrocious spelling aside, I am far from angry with zumbi. Unless my answer to him was just totally incorrect (it's been known to happen), why on Earth would you even entertain such a thought?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
i just couldn't explain what i was thinking in a correct english...
sorry, it was the only smiley i found to say this.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
zumbi wrote:
We need the answer (code) soon becouse its our schoolwork.
The only reason to ever include statements such as this is to inform any potential responder that you may not be as well-versed in the language as them and that extra details might be necessary. To qualify it by saying "hurry," "soon," or "ASAP" will almost assuredly get you nowhere fast.
That said, have you visited this site?
"Lack of planning on your part does not constitute an emergency on my part." - Anonymous
|
|
|
|
|
Hi.
I'm using a DLL provided by someone else which throws up a message box in case of an error in some function within the DLL. Is there some way I can suppress these message boxes? Asking the person who wrote the DLL to get rid of them doesn't work. Any useful suggestions would be appreciated.
Thanks,
Sandhya.
|
|
|
|
|
This would the nearest i can think of ...
1.Before you call any function of that DLL ,call
SetWIndowsHookEx(WH_CBT,CBTProc ,GetApp()->m_hInstance , GetcurrentThreadId())
You need to write the CBTProc Function .refet MSDN for it .In that function you can trap any messages for all the windows create din ur application .
2.AFter you are thru with calling the DLL function ,call UnhookWindowsHookEx()
To read more ,there is en excellent article by Nishant and SHog .If you follow the MFC way ( CDelayMessageBox 2 ) ,you can do this easily .
Click This to know more ..
Cause is my effort;
Effect is God's effort
|
|
|
|
|
Thanks to generous help, I have nearly finished my little project and have one more query. If I want to send a new line command how is it done? I have tried \n but that doesn't do it.
Hopefully the code below will explain better what i am trying to do.
// TODO: Add your command handler code here
CEdit &edit = GetEditCtrl();
CString strText;
CString msg = " Line is ";
edit.GetWindowText(strText);// text XYZ is on 1 line
while (!string.IsEmpty())
{
_strrev(strText); //line 1 is reversed ZYX
// display 1 character per line
// Z // Y // X
}
edit.SetWindowText(msg+strText);
GetDocument()->SetModifiedFlag(TRUE) ;
}
Thank you once more!
|
|
|
|
|
|
|
Hi,my name is kritharan krishnan....
I'm a final year E&E undergraduate from malaysia....
i'm doing a PC based 'Digital IC Tester' for my final year project.
I planed to write the test program in VC++ , but got NO idea on how to start it...
The IC Tester-will only test TTL(transistor- transistor logic) IC's.
Can anyone HELP me on this project???
I really need some guide.... PLZ HELP ME.
I would really appreciate uf u can help me
my e-mail add : krit_82@hotmail.com
|
|
|
|
|
hum, it depends on many parameters we don't have here ...
what sort of ICs are they ?? logical operators and such things ?
do you already have an electronic test bench outside the PC to connect the IC to test ?
if so, can we know how the test is about to proceed (any schemas are welcomed, be as i'm not sure you can post it here, you can either post it on a site we can all visit, or you send me a mail)...
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|