|
No the HTTP session is running in the background and not through explorer.
|
|
|
|
|
hello
In my mainframe window i have an accelerator key for for the 'del' key.
now the problem is, if i input a text into an editcontrol which is a child of the mainframe window and press 'del' to delete a char, the accelerator associated with the 'del' key is called instead of the usal processing of the edit control (deleting the char behind the caret).
how can i avoid this ? what message do i have to handle that the accelerator is ignored while working in an edit control or combobox or whatever ?
greetings
roman
I'm not a slave trader - just a labor contractor.
-- modified 26-Apr-21 21:01pm.
|
|
|
|
|
Use WM_KEYDOWN handler instead of an accelerator (it just seems inappropriate in this case).
Regards,
BB
|
|
|
|
|
Let's say I have two buttons:
ID_BUTTON_START
ID_BUTTON_END
- is there a way (such as "if(myDlg.DoModal() == IDOK)..." to indicate that first or second button was pressed for a modeless dialog?
|
|
|
|
|
You could always use a bool varible within the class to keep track of this.
-Nick Parker
|
|
|
|
|
If I need to store state data from a modeless dialog box I usually pass a pointer to my CDocument and store it there. Otherwise when a button is pressed I send a command message to my main view window. This way the dialog can delete itself in the PostNcDestroy function without worrying about some function trying to look at data stored in the dialog class after it has been destroyed.
John
|
|
|
|
|
hello
i make an appliaction that draw in the window of the application some objects with OpenGL.and i put the call of the function who draw in ondraw.
my problem is that when i minimize and maximize the window other objects appear in the window(other objects are draw).
i want just draw once and and don't repeat the drawing.
<br />
void creatfoufou::creatfou(int amount)<br />
{<br />
foufou *newfoufouPtr;<br />
int speed,steer;<br />
<br />
for(int index=0;index<amount;index++)<br />
{<br />
<br />
foufou *newfoufouPtr = new foufou();<br />
fou_caracter.push_back( newfoufouPtr );<br />
<br />
newfoufouPtr->initPosX =( ( 1 + rand( ) % 100 ) - 50 );<br />
newfoufouPtr->initPosY =( ( 1 + rand( ) % 100 ) - 50 );<br />
newfoufouPtr->initPosZ =( ( 1 + rand( ) % 100) - 50);<br />
<br />
<br />
<br />
<br />
<br />
}<br />
}<br />
<br />
<br />
void creatfoufou::iteratorVector()<br />
{<br />
<br />
creatfou(5);<br />
int vectorIndex;<br />
vectorIndex = fou_caracter.size();<br />
<br />
for (int i=0;i<vectorIndex ;i++)<br />
{<br />
<br />
ptrfoufou->RePaint(<br />
fou_caracter[i]->initPosX,<br />
fou_caracter[i]->initPosY,<br />
fou_caracter[i]->initPosZ);<br />
}<br />
<br />
}<br />
<br />
i call iteratorVector in ONDRAW
|
|
|
|
|
Iam doing MFC based project .MY project has a dialog box which contains the GRID control activeX control .
Now when i try to access that dialog ( which contains the grid) in the Visual studio .NET ,i get this message .
"The activeX control GRid control requires design time liscense".
I prepared the installation using WISE and installed in the same system in which it was developed .
But the same dialog box works fine in the EXE .
|
|
|
|
|
I need to launch a Vis Studio 6 C++ application that is initially minimised.
This is a Dialog-Based app.
How to do this?
Most of the time this app will run and exit in a few seconds, but I want user to be able to maximise it if runs longer and it is desired to watch app progress.
Much thanks in advance.
Robert
|
|
|
|
|
Your easiest option would be to progrmatically minimize it in OnInitDialog otherwise you will have to manually (text) edit your .rc file. I believe that is where it is stored. Unfortunately I have not used VC6 in quite awhile and I am currently working console based apps. Alternatively you could create an SDI app with CFormView and remove the tool bars etc.
Matt
|
|
|
|
|
Thanks Matt!
Robert
|
|
|
|
|
The easiest thing you can do is putting the following call at the end of your OnInitDialog():
BOOL CSampleDlg::OnInitDialog()
{
...
// Open the dialog minimized
ShowWindow( SW_MINIMIZE );
return TRUE;
}
That should do it... Hope it will help you!
Mykel
|
|
|
|
|
Thanks Mykel. I have it up and running!
Robert
|
|
|
|
|
hi, all,
i have to move to unix, i really hate vi or pico.
is there a very good c++ tool (similar to VC++ in windows) in unix? what is that? which one is best?
i believe someone here is good in unix also.
thx
includeh10
|
|
|
|
|
xemacs (and it's free) for editing. ddd for visual debugging (of core dumps).
|
|
|
|
|
I just use nano. But then again I am a windows programmer so I don't really do much unix work.
Matt
|
|
|
|
|
I personally used the editor (X)JED with Make, DDD and Qt professionally a couple of years ago. When it comes to IDEs comparable with Visual Studio, KDevelop must be the number one choice.
--
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. (Douglas Adams)
|
|
|
|
|
Hi,
I have embedded a windows media player 9 control in a CFormView of an SDI Appln. The default properties of the control in the resource dialog is set as
1) Play Full Screen - true
2) Auto Start - false
3) File Name - swiss.avi
4) Windowless video - true
5) Mode - None (No button controls)
In the code I trigger the AVI to play using
m_Player.SetUrl(avi_file); // avi_file is a variable that holds different AVI file names
m_Player.GetControls().play();
if (! m_Player.GetFullScreen())
m_Player.SetFullScreen(true);
It doesn't play the file in fullscreen when I run it. In fact it throws a blank error message box after it starts playing the file. I want to be able to switch the AVI files based on the key pressed by the user.
If I comment the Get/Set fullscreen code....it plays in fullscreen mode the first time and not after that. I don't know if this is a bug in windows media player 9 or am I doing something wrong ?
Also how do I maximize the windows media control to occupy the entire form view area when it starts up ?
Please help.
Thanks
v3man
|
|
|
|
|
I am trying to convert a NT-Service skeleton to UNICODE and I am stuck on one point:
USES_CONVERSION;
.
.
.
TCHAR chMsg[256];
.
.
.
printf(T2A(chMsg));
does not print out plain text instead I get the following on output in the command window(exact length may vary):
????????????????????????????????????????????????????????
My question is, is this the problem spot, if so how should i fix it, or is a conversion earlier in the code causing the odd output? I would greatly appreciate some ideas.
Matt
|
|
|
|
|
Matt Newman wrote:
My question is, is this the problem spot
Try putting this code just before :-
_tprintf("%s", chMsg);
That way we know if the wide string is okay.
Nish
"I'm a bit bored at the moment so I'm thinking about writing a new programming language" - Colin Davies
My book :- Summer Love and Some more Cricket [New Win]
Review by Shog9 Click here for review[NW]
|
|
|
|
|
I did that but the only way I could get it to compile was to change it to
_tprintf(_T("%s", chMsg);
When i did this I got the same output.
vsprintf(T2A(chMsg), pFormat, pArg);
This is the only code executed on chMsg pFormat is LPCSTR and pArg is va_list
Matt
|
|
|
|
|
try "%S" instead of "%s"
-c
|
|
|
|
|
That didn't work either, It did add alot of special characters though
Matt
|
|
|
|
|
Hi,
I developed dll. I tried to regsvr32.exe to load the dll. I had a error message.
"filename.dll was loaded, but the DllRegisterServer entry point was not found"
what is problem of my dll?
Thanks.
|
|
|
|
|
regsvr32.exe is used to register COM DLLs and COM DLLs implement an exported function called DllRegisterServer for this purpose. regsvr32.exe simply LoadLibrary 's the DLL and calls this function.
Nish
"I'm a bit bored at the moment so I'm thinking about writing a new programming language" - Colin Davies
My book :- Summer Love and Some more Cricket [New Win]
Review by Shog9 Click here for review[NW]
|
|
|
|