|
|
If I create a window in another window in the non-client area then send the WM_PAINT message to the child window if the parent receives a WM_NCPAINT message, the client window doesn't redraw (the non-client area it is on is still garbled with the old pixels that were in those rect). How can I solve this?
|
|
|
|
|
hello
i want to make ActiveX control (VC++6.0) build from other ActiveX controls created in run time. i used MFC ActiveX Wizard to generate the code and now:
1) i have AfxEnableControlContainer() in InitInstance
2) in OnDraw i'm trying to do sth. like:
this->CreateControl("QButton.Button", "", WS_VISIBLE, rc, this, IDR_BATON, NULL, FALSE, NULL);
but it causes run time error (assertion failed with hwnd argument).
can anybody help me?
thanks in advance
--
s3b0
|
|
|
|
|
i have two vectors i am trying to compare the first is a string vector and the other is a char vector. i am trying to find for example the word hello in the grid vector and i can find the fist char but i dont know how to move or set up a loop to check all the possible directions for the next char in the string. here is a bit of my code. Once the first char is found i need to find the next which the next char could be in 9 possible directions.
-String Vector-
01234
0hello 1apple
2car
3me 4men
5ran
6woman
-Grid Vector-
01234
0cenad
1aatps
2rnrpj
3hello
4wmneo
/*------------------- A Word Checker ----------------------*/
for(int i=0; i < GridVector.size(); i++)
{
for(int j=0; j < GridVector.size(); j++)
{
if(StringVector[0][0] == GridVector[i][j])
{
{
}
}
|
|
|
|
|
Does anyone have a spell checker that they recommend for integration into Windows apps? We are looking for a quality once, it does NOT have to be free. It should be able to be integrated with several different technologies, including Borland C++, Delphi, and Microsoft C++ and .NET (so I presume that an API with a COM interface is the best way to go).
Thanks for any suggestions,
~Steve
|
|
|
|
|
Oops, forgot something... it would be a great benefit if the dictionary was available with medical terms already in it.
~Steve
|
|
|
|
|
There is one (International CorrectSpell) offered by Lernout & Hauspie Speech Products.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
David, thanks for the suggestion... I'll look into that one.
~Steve
|
|
|
|
|
DavidCrow wrote:
Lernout & Hauspie Speech Products.
That company went belly up long time ago.
My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.
|
|
|
|
|
Nemanja Trifunovic wrote:
That company went belly up long time ago.
Be that as it may (I can neither confirm nor deny), the product, at least the 1993 version, is still licensed to them and is still in use by Microsoft Office XP.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
|
Thanks for the links, especially the componentsource one... that look like one that I'll have to keep on file for future projects.
~Steve
|
|
|
|
|
I handle the right click in a CTreeCtrl with
ON_NOTIFY( NM_RCLICK, IDC_TREE1, OnTreeRclick )
and
void CTestTreeDlg::OnTreeRclick( NMHDR* pNMHDR, LRESULT* pResult )
{
NM_TREEVIEW* pNMTreeView = (NM_TREEVIEW*)pNMHDR;
HTREEITEM hSelItem = pNMTreeView->itemNew.hItem;
}
When I right click on the tree background, not on a leaf or node, the hSelItem is not valid, and is not a "simple" value like NULL or zero.
Is there a way to check to see if the HTREEITEM item is valid ?
I tried the following to see if I can get the item based on the hitem the notification message gave back, it could "work" but it gives a "First-chance exception" when passing a bad hitem.
TVITEM item;
TCHAR szText[1024];
item.hItem = hSelItem;
item.mask = TVIF_TEXT | TVIF_HANDLE;
item.pszText = szText;
item.cchTextMax = 1024;
BOOL bWorked = m_Tree->GetItem(&item);
Thanks.
Max.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I would use:
void CTestTreeDlg::OnTreeRclick( NMHDR* pNMHDR, LRESULT* pResult )
{
CPoint point(GetMessagePos());
m_tree.ScreenToClient(&point);
<br>
HTREEITEM hi=m_tree.HitTest(point);
<br>
if (hi)
{
}
} where m_tree is the CTreeCtrl member associated with your control.
Maybe not the best method but it works.
"though nothing
will keep us together
we can beat them
for ever and ever"
rechi
|
|
|
|
|
yep, I've read about using HitTest .
It seems like the lesser evil ...
Thanks.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
How to find a template in a Bmp file? Maybe the template in the Bmp file is rotate or scaled.Who can tell me the algorithm? Thanks!
|
|
|
|
|
I made a MFC ActiveX. I want to open the activeX in a toolWindow with the createToolWindow method.
When The toolWindows is created, I have Hatched border at the right and bottom of my activeX.
How can i do to suppress it ? (It seems that all MFC ActiveX i downloaded do the same thing....)
|
|
|
|
|
Hi,
I'm using WH_MOUSE and WH_KEYBOARD hooks to sense user movement just like a screensaver. The screensaver prevents the hook messages from reaching the program. Therefore I disable the screensaver when I enable hooking.
Now I've realized that if the user locks the computer manually - by pressing CTRL+ALT+DEL and afterwards the "Lock Computer" button, then the hook messages never reach the program.
Is there a way to let the hook messages pass beyond the logon screen and reach my running program?
Thanks in advance...
|
|
|
|
|
inject your code into the process that is showing the user screen and enable hooks from it
gabby
|
|
|
|
|
Hi there,
I want a dialog-based MFC application, that receives URLs from Internet Explorer via Drag'n'Drop.
My Dialog consists of Listboxes, Edit-fields, buttons and so on. I want my Internet-Explorer to show a html-page. When I drag this page to my dialog, I want to process this URL to display the parts of the URL in different controls.
I tried a simple FileManager-Drop Operation, but Internet Explorer does not provide URLs via this Mechanism. All the OLE-examples show, how to drag items from a listbox into another listbox.
How can I receive a Drop from Internet-Explorer?
e-DJ
|
|
|
|
|
Hello,
Now I have been testing a aplication program which is implimented
by Win32(VC++) and Pro*C.
What I am comfused is that the count of the application's handles
which is displayed on TaskManager is incremented only, never decremented.
The application should be used for 24 hours everyday,
so I think this is a serious problem.
I have been triying to check my code,
especially where kernel objects is created and the handle should be closed,
but I haven't found what is wrong.
I guess that I can get some hints if I can know which module has handles
in the application process.
Cay anybody Know about it?
or what I should do anything else generally?
regards.
Takanobu Maekawa
|
|
|
|
|
|
Thank you!!
That is just what I need!.
I have found some handles which are associated with registry key operations.
thanks very much again.
Takanobu Maekawa
|
|
|
|
|
hi
I write a program, and I want my program cannot not be kill by TaskManager, same easycafe. But I don't know the way to do this.
When i choose client.exe (exe file of easycafe) and click End Process, the process still run.
|
|
|
|
|
You could write the program as a service so that it'd run under the SYSTEM account and then you couldn't kill it without admin privillages.
modified 12-Jul-20 21:01pm.
|
|
|
|