|
Thanks,
I'm back at work and I am storing the hWnd instead and using the IsWindow.. this works perfect.. Thanks everyone..
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
I maybe wrong here (as usual), but:
From looking into that line of code:
CWnd *pNewWnd = CWnd::FindWindow(NULL,_T("The Client App Name"));
I would assume that "The Client App Name" window doesn't belong to your module (it's not this module that created it).
If my assumption is true, then CWnd::FindWindow returns temporary CWnd object.
Therefore that temporary CWnd object maybe already deleted at the time you are using it later.
Solution:
Instead of storing CWnd* -- store HWND, like that:
struct s_windows{<br />
HWND hWnd;<br />
};
Regards
"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
|
|
|
|
|
Hi all,
How can i disable "WinLogo Key" in the KeyBoard Programmatically ? Also Ctrl+Alt+Del ?
Best Regards.
|
|
|
|
|
This has been discussed several times here at CP, and on the microsoft.public.vc.mfc newsgroup. As best as I can remember, neither is possible as they are intercepted by the keyboard device driver before being passed on.
|
|
|
|
|
|
I need to do it programmatically for 2 RichEdit's. When I press VK_DOWN in one the second shold scroll down too. How is it done?
|
|
|
|
|
If you are using Document/View and both windows are displaying the same document then you could use a document member variable to keep track of which line is displayed at the top of the window and then just call UpdateAll() when that value changes in one of your views.
INTP
|
|
|
|
|
I use nothing in MFC. I write an ATL component with 2 RichEdits so I need a way to do it in pure WinAPI.
|
|
|
|
|
You still have 2 options: 1) Maintain a window independent (scroll) position of the top left courner some where and then when the position changes in one window just invalidate the other window, or 2) When you you recieve a movement command in one window post the same message to the other window (this might require some translation or your part, but it shouldn't at the message should be in client coordinates).
Good Luck!
INTP
|
|
|
|
|
is there a way to use interrupts of parallel port directly in c++ .
i.e without using windows API CreateFile(),etc.
|
|
|
|
|
Depending on the OS, you may or may not (HAL) have direct access to the hardware.
|
|
|
|
|
Only by writing a device driver.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Can anyone tell me if it is possible to use a controller
in Visual C++ to show a HTML page, like a web browser would
show it?
My application should show a html page, hopefully with fully
working links.
Hope someone can tell me or direct me to a tutorial!
thanx
|
|
|
|
|
Take a look at Paul DiLascia's CHtmlCtrl.
HPS HwndSpy - GUI developer's aid to visually
locate and inspect windows. For the month of August
only, use coupon code CP-81239 for 30% off.
|
|
|
|
|
|
I want to implement a scroll window based on CWnd class. But I don't like use CScrollView. I try to display or set the scroll bar, but it doesn't work. Could you tell me some key points or give me some sample? Thanks.
|
|
|
|
|
|
Is it possible to project a point to a line in 3d ?
I have a point, a line ( vector ), I'd like to project the point to the line to create a triangle out of the 3 points.
here's a picture of what I' trying to explain.
http://pages.infinit.net/thesorus/images/math.jpg[^]
Thanks.
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
|
Thanks !!!
another link to put in my math bookmarks ...
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
I want to add a button to the menu to clear the recent file list but don't know how to. Does anyone know the function or at least a way. Thank you.
[It is possible to represent everything in this universe by using 0 and 1]
|
|
|
|
|
|
Hi,
in your application class create a handler for the menu to clear the recent file list.
in that handler do:
<br />
if( m_pRecentFileList->GetSize() <= 0 )
<br />
for(int i = m_pRecentFileList->GetSize() - 1; i>=0; i--<br />
{ m_pRecentFileList->Remove(i);<br />
}<br />
m_pRecentFileList is a protected member of the CWinApp class
That should do.
G. Steudtel
|
|
|
|
|
Hi,
Does anyone know hows to send SMS messages to mobile phones using VC++?
Neil
|
|
|
|
|
Not sure if it can be done without the use of some digital signal equipment, its probably easier to make your own mobile phone.
|
|
|
|