|
Override OnOK() and/or OnCancel() .
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I would like to be able to read the text in the comments of a website. The problem I am having is that the site I want to be able to parse has comments before the HTML tag. Using the IHTMLDocument2, I haven't been able to do this because it seems to strip comments out. Any help would be apprecaiated. Is there any way to just get a string of the source code, and parse that? Thanks!
|
|
|
|
|
Yes, see this[^] article to parse the contents of a url.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Thanks for the link. Unfortunately, that won't work either. The problem is that we output a comment that contains the actual server name that you are on (our farm has over 150 boxes) into the comment. Using your method, the server sees the application as not supporting javascript, so it creates an error page saying that. Any other ideas? Thanks!
|
|
|
|
|
Is it possible to open up dialogboxes as many numbers as an user wishes and specifies at run time? If possible then how?
How can I make a bitmap resource clickable so that a new dialog box appears when it is clicked ,in which there may contain the same bitmap resource along with the upper said clickable criterion???
|
|
|
|
|
joy007 wrote:
Is it possible to open up dialogboxes as many numbers as an user wishes and specifies at run time?
I don't understand this question. If you mean, is it possible to have multiple dialog boxes open at the same time, the answer is yes, if you make them modeless dialogs.
joy007 wrote:
How can I make a bitmap resource clickable so that a new dialog box appears when it is clicked
See this[^] article to create a bitmap button that displays as a static control (i.e. without the button border). Display your dialoig in the button's handler.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
If you mean, is it possible to have multiple dialog boxes open at the same time, the answer is yes, if you make them modeless dialogs.
Whether they are modal or modeless, multiple dialogs can be open simultaneously.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I understood "open" to mean "accept user input".
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
It was not an intuitive question no matter how you sliced it.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
yes.
just do something like :
...
CYourDialog* p = new CYourDialog( ID_OF_THE_BITMAP_YOU_JUST_CLICKED_ON );
p->Create( ... );
p->ShowWindow( SW_TRUW );
...
You will need to keep track of the dialogs so you can delete them eventually.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
|
what ??? it should have been ->ShowWindow(SW_SHOW);
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
joy007 wrote:
Is it possible to open up dialogboxes as many numbers as an user wishes and specifies at run time? If possible then how?
Ravi,I mean to say,that when an user draws an item in a document and next double clicks on the drawn item leading to open up a dialog box or another document which may or may not contain the same item drawn.If same item is found drawn on this new document and double clicked it should open up another dialog box or document and so on.... Actually I want the to make the item as multilevel so that an user can go through easily from its root level to node.
|
|
|
|
|
I require some assistance with a unique problem, and as I am not much in the way of an Win32 API programmer, was hoping someone could help me out.
I am configuring an application for a customer that would like a hotkey setup for a specific program function; however, the application itself does not support the space bar as a hotkey.
I was looking at maybe trapping the space bar for this specific application and remapping the key as a hotkey that it does support (like F12), but leaving the space bar functionality intact for other programs also running. I have no idea how to go about doing this, whether it can be done, or if it is even the best solution for the problem.
I do not have access to the application code for which I am trying to add this additional support to.
Does anyone have any suggestions? Thanks
|
|
|
|
|
Refer PretranslateMessage() is mSDN and u will find the answer for that probably !!!
Cause is my effort;
Effect is God's effort
|
|
|
|
|
Hi!
Using the DrawText function I can specify that the text should be truncated with ellipses if the text does not fit in a specified rectangle by supplying either the flag DT_END_ELLIPSIS (will truncate and add ellipses to the end) or the flag DT_PATH_ELLIPSIS (will truncate and add ellipses to the middle).
aaaaa\bbbbb\ccc...
aaaaa\...\ccccc
But I need to truncate and add ellipses to the beginning. How would I go to about to achieve this?
...\bbbbb\ccccc
|
|
|
|
|
What would happen if you replaced each folder name in the path with ellipses until GetOutputTextExtent() indicated that the text would fit in the control?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
That might work!
Thanks for your suggestion.
|
|
|
|
|
I've searched through a lot of forums and found a lot of clues to my problem, but I'm still a bit in the dark about it. I need to screen keyboard input to determine if it is a valid sequence, or if it is a repeated entry. After doing some research, I decided that a system-wide hook may fit my needs. Here is an example of the specific problem I am trying to tackle:
Forklift drivers log onto their system (win xp tablet pc with an internet explorer based mainframe emulator) using a keyboard, then scan the loads they move. All of the input comes in through the keyboard, since the barcode scanner is spliced into the ps2 port. The problem is, if they are supposed to log on with '55555', and they enter '54556', the mainframe terminal lets them, and they don't get credit for doing any work until they log in correctly; or they may scan the same barcode twice in a row, creating a duplicate entry. I can't get to the mainframe app to add error checking and error messages, so I want to manipulate the input before it's posted to the terminal window, disregarding it and issuing an error message box so the forklift driver can enter the correct data.
I've done a lot of reading about hooks, and starting working on a low level keyboard hook (WH_KEYBOARD_LL) in a dll, and got it to work, although it doesn't do anything other than return success. I'm relatively new to Windows API programming, and I think I need a little bit of direction. Here is what I want to do:
Hold the data in some type of field (array, string, etc), and check it against a list of valid data. I suppose I could do this by checking the keydown event for vk_return, but then how would I erase the bad data from the terminal window? Can I hold all the data somewhere until enter is pressed, check it, then dump it or let it pass to the active window? I've read several articles and forum posts about this, but most of them have to do with trapping single keys. If there is a better way to accomplish this than a system wide hook, that's ok, since I'm trying to solve a problem more than learn a new technique. Any advice or thoughts would be helpful. Just ask if any further clarification is required. Thanks!
|
|
|
|
|
Hi everyone,
Anyone knows of a way to host Visio 2000 in IE. I only came across Visio Viewer control, but I want to be able to create visio drawings also.
Thanks,
pankaj
/**
I'm the one who's gonna have to die
When it's time for me to die
So let me live my life
The way I want to
- Jimi Hendrix
*/
|
|
|
|
|
Is there any particular reason why the following code won't compile? Thats very basically what I have got. I'm only doing this as a quick hack, so I'm not at all concerned with code design, but it really intrigued me as to why it won't let me declare a namespace within a class? All the things I've read on the internet deal only with class declarations within a namespace but not visa versa. Just wondering whether this the c++ standard leaves it up to the compiler or whether its officially illegal code? Seems a bit silly to me, but maybe theres a reason for it? Just wondered if anyone's knows what it is?
<br />
class Outcome<br />
{<br />
public:<br />
enum Type<br />
{<br />
kHalt,<br />
kMove,<br />
kJump,<br />
};<br />
<br />
Type m_type;<br />
<br />
namespace halt<br />
{<br />
void Low(void);<br />
void Medium(void);<br />
void High(void);<br />
};<br />
<br />
namespace move<br />
{<br />
void Low(void);<br />
void Medium(void);<br />
void High(void);<br />
};<br />
<br />
namespace jump<br />
{<br />
void Low(void);<br />
void Medium(void);<br />
void High(void);<br />
};<br />
};<br />
"When I left you I was but the learner, now I am the master" - Darth Vader
|
|
|
|
|
At what point do you get the compiler error? The line Type m_type; is invalid. You'd have to scope it with Outcome::Type m_type;
Bob Ciora
|
|
|
|
|
I changed it to this but I still get the same error message from gcc :
"error: parse error before `namespace'"
Do you think its a compiler bug or is it just not supposed to be supported? Its a bit weird don't you think considering that a class is essentially a namespace and you can have nested class declarations and nested namespace declarations, but not this way round?
class Outcome
{
public:
enum Type
{
kHalt,
kMove,
kJump,
};
namespace halt
{
void Low(void);
void Medium(void);
void High(void);
};
namespace move
{
void Low(void);
void Medium(void);
void High(void);
};
namespace jump
{
void Low(void);
void Medium(void);
void High(void);
};
Outcome::Type m_type;
};
"When I left you I was but the learner, now I am the master" - Darth Vader
|
|
|
|
|
You do not have to qualify type with the name of the class since it is declared inside the class. The original declaration of the Type enumerated variable was fine.
Shawn
|
|
|
|
|
Namespaces can contain classes, but classes cannot contain namespaces.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|