|
I have dialog based application.
Main dialog contains it's own controls, like button, and one TabCtrl.
Tab control contains couple of child dialog windows, their visibility is determined by selected tab in tab control.
I need to make this resizable, but it's flickering to much, especially tab control and child winwow's controls.
I tried to disable OnEraseBkgnd on both main window and child windows, but with no effect.
How to do this ?
Thanks
rrrado
|
|
|
|
|
i am not sure it will work but,
in the resource of the dilaog choose properties of the dialog, and in the style tab check the 'clip siblings' and 'clip children'
this should do the trick.....
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
I tried this before, but this didn't work
But thanks for advice.
rrrado
|
|
|
|
|
I am trying to change an environment variable from a code.
I have tried the each one of the following:
1. sprintf(szCatiaBase, "CATIA_BASE=%s" , (LPCTSTR)strCatiaBase);
nRet = _putenv(szCatiaBase);
2. sprintf(szSysCall, "set CATIA_BASE=%s", (LPCTSTR)strCatiaBase);
nRet = system(szSysCall);
3. CRegKey rkRegistry;
CString strValueName("CATIA_BASE");
rkRegistry.Open(HKEY_CURRENT_USER, "Environment");
sprintf(szValue, "%s", (LPCTSTR)strCatiaBase);
LONG lRet = rkRegistry.SetValue(HKEY_CURRENT_USER, "Environment", szValue, (LPCTSTR)strValueName);
rkRegistry.Close();
BUT....
None of the above actually changed the environment variable - when I opened the cmd console and tried to see the envonment variable's value thruogh:
> set CATIA_BASE
I got the old value - meaning - the environment has not changed!!!!
Does anybody know how this should be done so the the environment will realy change?????
Thnx
|
|
|
|
|
Did u try SetEnvironmentVariable?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
On my hard disk I have 4 partitions. The one partition I formatted in the ext2 format so I could run Linux from it. However I would like to now change the format of the partition back to vfat (so it can be seen by Windows). Does anybody know how I can do this? OR is there aprogram available to do this? I don't want to reformat my whole harddisk.
I am the handsome one in the crowd.
|
|
|
|
|
What flavour of window are you running?
To keep linux files - use partition magic. If you don't care for those, delete and re-add partition.
Brian
|
|
|
|
|
I am running Windows 98 .
I don't have partition magic. The problem is that I can't even access the partition with DOS.
I am the handsome one in the crowd.
|
|
|
|
|
I need a program (create it in VC++ console app) that does Disable. or Enable Network Connections like when you do this:
1. Win XP Prof. - Open Network Connections.
2. Right-click the LAN or High Speed Internet connection that you want to disable.
3. Click Disable. or Enable
I was searching in "Platform SDK: IP Helper" IpReleaseAddress
GetAdaptersInfo ...
I did find only a funtion doing the same thing like (win32 command)
ipconfig /release myLocalAreaConnection
BUT this does not help me because we do not have DHCP enabled.
Many thanks for any hints
Marcel Grunder
|
|
|
|
|
I inadvertedly deleted the .scf entery in my Register, so now I can't click on the "Show Desktop" Button. Does anybody know the entry for this in the register? I think it might be something like "%1"%* but I can't get it to accept it.
I am the handsome one in the crowd.
|
|
|
|
|
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."
|
|
|
|