|
Hi all,
Does anyone know of any GOOD docs on the Windows Accessibility API (other than that of msdn's)...?
I would like to retrieve the text from any text-based application just by clicking the text or by hovering the text with the mouse pointer. Pretty much like www.atomica.com.
Does anyone know how to accomplish this?
/Tommy
|
|
|
|
|
How do I disable the restore button in the title bar at start ?
|
|
|
|
|
ModifyStyle( SW_MAXIMIZEBOX, 0); for MFC apps, otherwise
SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) &<br />
~WS_MAXIMIZEBOX);
hope this helps
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I don´t get it to work
void CMyView::OnInitialUpdate()
{
m_pSet = &GetDocument()->m_medlemSet;
CRecordView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
ModifyStyle( SW_MAXIMIZEBOX, 0);
...
Error:
error C2065: 'SW_MAXIMIZEBOX' : undeclared identifier
did I do something stupid
- Tom
|
|
|
|
|
Try WS_MAXIMIZEBOX
|
|
|
|
|
Oops
modified 12-Sep-18 21:01pm.
|
|
|
|
|
yes i figure that out, but I won´t get it to work anyway. The button won´t go away. Should I place the code in OnInitalUpdate(...) or in OnCreate(...), and besides I wanted the user of my application not be able to use the restore size button.
- Tom
|
|
|
|
|
I got it to work when i changed the order of the parameters:
//ModifyStyle(1, WS_MINIMIZEBOX);
ModifyStyle(WS_MINIMIZEBOX,0);
Thanks a lot !!
Is it correct that the application should go fullscreen when running the WS_MAXIMIZEBOX?
|
|
|
|
|
So now I got it, the right one should be:
ModifyStyle(0,WS_MAXIMIZEBOX,0);
Thanks for all
|
|
|
|
|
First of all, if you use the document-view-architecture, place ModifyStyle inside your CMainFrame class, not the CView. And then try using OnCreate rather than OnInitial Update (even if that shouldn't matter).
|
|
|
|
|
Dear friends,
I am writing an application i which there is a need to resolve a given domain and get the resultant IP. For this purpose i am using the traditional gethostbyname() technique.
But the problem is that on some LANs the gethostbyname() call fails. On such networks, the ping call on command prompt also fails. But very strange that Internet explorer and MSN messenger works normally. How can i programatically resolve domain on such networks ...
|
|
|
|
|
confused:can anyone point out soem tutorial on telephone to application control..sort of..like I dial a number and the number is recognized by the application running on my server and it responds accordingly..sort of answering machine with some intelligence..
any ideas and any tutorials are welcome..please..
thanks in advance..
cheers..
Himanshu
|
|
|
|
|
TAPI is pretty simple to learn providing your TSPI supports all the necessary functionality.
The platform sdk has some excellent samples for using TAPI. It also used to have something called WebTelephony Engine which provided some great functionality in conjuction with IIS.
The Speech SDK has links into TAPI very nicely and might be worth investigating.
The following link is a good starting point
http://www.sellsbrothers.com/writing/telprog/[^]
Michael
The avalanche has started, it's too late for the pebbles to vote.
|
|
|
|
|
I have a editbox with a date: DDX_FieldDate(pDX, IDC_PAY_DATE, m_pSet->theDate, m_pSet) . If the date was a string then i could check if the editbox was empty with the code if(myVariable=="") , but how do I do in the case with the date? The variable for the date is defined as TIMESTAMP_STRUCT theDate .
|
|
|
|
|
You can make a Control-variable for your Edit-Box (using the Code-wizard) and then call GetWindowText() on it.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Thanks jhwurmbach!
That was a really simple solution, and simple is the keyword for me
jhwurmbach wrote:
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
How can i disable scrollbar in CHtmlView, i use
this->ShowScrollBar(SB_BOTH,false);
i have windows error message
l also try :
Scrollar = this->GetScrollBarCtrl(SB_VERT);
VerBar->EnableScrollBar(ESB_DISABLE_BOTH);
error message again !
if you know how to disable scroll bar...
|
|
|
|
|
The standart functions regarding scrollbars won't work at htmlview. You have to take a look at IDocHostUIHandler and it's method GetHostInfo. (If you're working with VC7, you don't really need to care about that because CHtmlView get's informed when GetHostInfo is called, and the function OnGetHostInfo is called). In VC6, you need to derive a class from COleControlSite, there implementing the IDocHostUIHandler interface. When adding DOCHOSTUIFLAG_SCROLL_NO to the flags member of the DOCHOSTUIINFO struct passed as a parameter in GetHostInfo, scrollbars won't be displayed.
For further information go to MSDN and search for "WebBrowser Customization" or IDocHostUIHandler in general.
|
|
|
|
|
Thank !
it's OK for disable scrollbar, and now i want to scroll the document where i want, is it possible ?
|
|
|
|
|
jeremysay wrote:
i want to scroll the document where i want
Have a look here: http://www.codeproject.com/useritems/scrollbrowser.asp[^].It's usefull if you want to act on your html document directly. If not, you could simulate keyboard input per send_key(...) to let the document scroll.
But unfortunately the standard CScrollView function won't work.
|
|
|
|
|
thx a lot for he link ! but i try this code but i have some problem...
so now i know where found a example.
|
|
|
|
|
I have a Dialog Application and I want to get new data in a timer function and draw a graph of it in a the Dialog window.
In the 'OnPaint' function I am drawing using CPaintDC like this:-
CPaintDC dc(this);<br />
CRect rect (m_pt.x, m_pt.y, m_pt.x+WIDTH, m_pt.y+HEIGHT);<br />
dc.Rectangle(rect);
In the timer routine I am using InvalidateRect to make it redraw my data like this:-
CClientDC dc(this);<br />
CRect thisRect;<br />
GetClientRect(thisRect);<br />
InvalidateRect(&thisRect);
But the buttons keep getting redrawn as well, which looks horrible. So how should I be doing it, any ideas?
Any help appreciated, thanks
Ali
|
|
|
|
|
you could try one of these:
1. Invalidate only the Rect occupied by graph (from your code, i guess that the graph is not a separate control/window)
or
2. Extract the drawing code into separate function and call this function from OnPaint and from OnTimer
OnPaint()<br />
{<br />
CPaintDC dc(this);<br />
Draw(&dc);<br />
}<br />
<br />
OnTimer()<br />
{<br />
CClientDC dc(this);<br />
Draw(&dc)<br />
}<br />
<br />
Draw(CDC* pDC)<br />
{<br />
CRect rect (m_pt.x, m_pt.y, m_pt.x+WIDTH, m_pt.y+HEIGHT);<br />
pDC->Rectangle(rect);<br />
}
|
|
|
|
|
Both of your ideas seem like good solutions to me. I think I will try them both out and see which I prefer.
I feel a bit anoid with myself really for not thinking of the first one myself, it seems so obvious now you have pointed it out! Oh well, sometimes things just don't seem that obvious at the time - I'll blame it on it being Friday!
Thanks for the help,
Ali
|
|
|
|
|
Hello,
INTRODUCTION:
First of all forgive me for posting this question here as it's not related to VC++.
ENVIRONMENT:
Win2k or XP Pro.
I've created an app that must be started at the beggining and that must be stopped at the end so the user cannot switch to any other app.
The main problem was to keep it secure.
In order to do so, I've created a service that installs two system wide hooks (one that controls the keyboard and other that controls the mouse).
QUESTION:
I need to know how to avoid that the OS shows the user the phrase: "press F8 keyboard to show the start menu options" (Notice that I've translated it and I've done it from my memory (it's almost sure that the phrase is not the same but the meaning yes...)).
Thank you in advance.
|
|
|
|