|
Put this in notepad save as .scf
[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
The .scf file contains the lines when I open it in Notepad. What I am missing is the entry in the Register. That is when one runs regedit then there should be a key with something like scffile and subkeys like shell, command, open. That entry under open is missing and what I need to place in the register.
I am the handsome one in the crowd.
|
|
|
|
|
Hi there
I have been trying to use CToolTipCtrl with splitter views (CSplitterView).
In my SDI project, I have 2 views created with CSplitterView which contain
bitmaps. I want tooltips to appear when the mouse moves over a bitmap. I
have been successful in implementing this, but... the problem occurs when I
do the following:
- I click on view A
- I move the mouse into view B, over a bitmap. The tooltip appears but with
the text "Last Record". What happens is that window B is not receiving
TTN_NEEDTEXT message. I need to click on window B to have the correct text
displayed.
I would need help to implement one of the following:
1. how do I route the TTN_NEEDTEXT message to all my views.
or
2. how do I disable the tooltip in a view as long as this view is not
receiving TTN_NEEDTEXT message.
or
3. any other brillant idea.
Thanks a lot!
Laurent
|
|
|
|
|
So here is my solution:
I have implemented a method to handle TTN_NEEDTEXT for the mainframe. The method sends the
message to the window at the location of the mouse pointer:
BOOL CMainFrame::OnToolTipNeedText( UINT, NMHDR*, LRESULT* )
{
const MSG* pstpMsg = NULL;
CPoint clCursorPos;
pstpMsg = GetCurrentMessage();
::GetCursorPos( &clCursorPos );
::SendMessage( WindowFromPoint( clCursorPos )->GetSafeHwnd(), pstpMsg->message, pstpMsg->wParam, pstpMsg->lParam );
return TRUE;
}
Anybody sees any problems with this implementation?
Laurent
|
|
|
|
|
There seems to be no apparent problem with the implementation you specified.
The basic handling of the splitter window, I think, when receiving a tool tip request, is to pass the request to the view which currently has focus. What you are doing here is trapping the tool tip request message and passing a notification to the window under the mouse instead, which is the correct way. I am unsure if this is correct, you could check it with Spy if you need to.
I believe that if you didn't implement this, the tooltip showed by the view would be the one bound to the view currently having focus. So, if you clicked on view A and moved your mouse over to B, the tool tip displayed would be the one bound to view A, and vice versa. However, as I didn't see the code you used, I cannot be sure, as I haven't tested it myself.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Hi!
I am doing measurments on IP-TV. My program is joining a multicast group and then I recieve video packets from the group.
I will study the packets I recieve, but I do not know how to convert from mpeg-2 to ASCII in c++ and vice versa.
If there is someone out there that knows, I am thankful for your help,
|
|
|
|
|
I don´t know exactly what do you mean when you say 'convert from mpeg-2 to ASCII in c++'.
I have developed (for my company) a mpeg transmission system based on RTP protocol. I listen to a multicast port and i receive the data in a buffer i provide. I mean, I create a buffer like this...
BYTE *pBuffer = new BYTE[BUFFER_SIZE]; // buffer big enougth
then the socket functions fill the buffer and I use it like
SRtpHdr *pHdr = (SRtpHdr *)pBuffer;
Once I proccess the headers I reach the raw mpeg data to proccess itself (i mean, save to a file, display using DirectShow...)
|
|
|
|
|
Juan Antonio Bermejo wrote:
I don´t know exactly what do you mean when you say 'convert from mpeg-2 to ASCII in c++'
I am totally confused on that one too... I know they don't want to display video using ASCII characters(instead of pixels) and coloring do they??
John
|
|
|
|
|
C++ ?
I am writing a virus scanner and all is working fine but, the UI freezes up when it is moved.
I recursivly call the same function over and over again until all files have been read.
I put in a timer function, and even tried sleep(1000) but alas no good.
Any idea's?
Best Wishes,
ez_way
|
|
|
|
|
U need to put your loop or recursive call in a separate thread
Check AfxBeginThread
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Example pls. Thanks
Best Wishes,
ez_way
|
|
|
|
|
UINT doLongTimeConsumingWorkHere ( LPVOID pParam )
{
while (recursing)
BlaBlaBla ( ) ;
return 0 ;
}
AfxBeginThread ( doLongTimeConsumingWorkHere , pParam ) ;
the pParam u pass here is the argument of the doLongTimeConsumingWorkHere
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
OK Thanks,
Great answer1
Best Wishes,
ez_way
|
|
|
|
|
Hi,
I don't know how to say it in a good way in english, but i need to know how to setup the path that i go through wenn i press Tab in a dialog. Is there a Standart function for it in VC6? or do i have to edit the Resource Template file?
greetz willem
|
|
|
|
|
You might want to check out the "Tab Order" item in the Layout menu that becomes visible when you select a dialog in the resource view.
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
the answer was right there, just couln't find it,... thank you...
|
|
|
|
|
Press Control +D
Best Wishes,
ez_way
|
|
|
|
|
HI All
How to gray checkbox in tree control.
Thanks
Shiv
|
|
|
|
|
I hope my program can display check boxes by reading configuration files.
But how to add the check box control dynamically?
|
|
|
|
|
|
Is there any valid reason in 2003 to use unions in C++?
thanks
|
|
|
|
|
'Cause there is union keyword.
|
|
|
|
|
I was going to say no reason but as I think of it I wrote my own Variant like object with extended functionality that was a union of 10 different types without a union the code would have been more complicated.
John
|
|
|
|
|
In many cases, it's a bad idea (including some cases in which it's used in the Windows API), but it has its uses. One such use would be if you wanted to have a color as a 32-bit integer, but wanted to easily be able to extract the red, green, and blue out of that integer. (Well, maybe that use isn't the best example, but there are good uses that are similar to that.)
"I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use." -- Galileo Galilei
FLUID UI Toolkit | FloodFill in C# & GDI+
|
|
|
|
|
what's wrong with a little bit-bashing?
UINT col = 0xFFCC00;
int red = (col & 0xFF0000) >> 16;
int green = (col & 0x00FF00) >> 8;
int blue = col & 0x0000FF;
cout << "r: " << red << " g: " << green << " b: " << blue;
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|