|
vgrigor wrote:
No need to battele more,
what ?
vgrigor wrote:
so please close your battle desire. [empty one.]
what ?
Sorry i dont understand, i cant answer ur question.
-Peace.
|
|
|
|
|
Any idea how to obtain a pointer to a Dialog
Kind Regards
Kevin
|
|
|
|
|
simple "this" points to the current dialog.
P.R.A.K.A.S.H
|
|
|
|
|
|
At what stage do you need a pointer to the dialog?
Steve S
|
|
|
|
|
how to close all SDI windows in MDI when application initializing ?
Jiang Wei
|
|
|
|
|
It's the default action in MDI app. If you launch it without any filename on commandline, it creates a new file. To suppress it, go to CYourApp::InitInstance and add before the ProcessShellCommand :
<br />
if (cmdInfo.m_nShellCommand != CCommandLineInfo::FileNew)<br />
if (!ProcessShellCommand(cmdInfo))<br />
return FALSE;
Robert-Antonio
"Friends come and leave, but teddybears stay in forever."
|
|
|
|
|
As we known, we can set ReadOnly attribute to an editbox, and we can also disable a checkbox. But can we set a ReadOnly attribute to a checkbox and did not disable it ?
Looking forward to your answer.
|
|
|
|
|
m_chkItem.EnableWindow(false);
will disable the chkbutton, you need to have a member variable of the check box item for this
or
GetDlgItem(IDC_XXX)->EnableWindow(false);
will do it directly without the member variable
P.R.A.K.A.S.H
|
|
|
|
|
Thank you Mr.Prakash, but I thought we made misunderstandings. I meant that I wanna "set a ReadOnly attribute to a checkbox and Not disable it",and the attribute can not find directory in the checkbox property.. And your method is to disable the checkbox, it's not what I want, but thank you anyway.
|
|
|
|
|
Humm, If its disabled its readonly...
I guess you are confusing with readonly property of edit box.
If its editable then its not readonly.. this is according to the concept of windows control. If you want its to alter then you need to cutomise it.
P.R.A.K.A.S.H
|
|
|
|
|
And what should I do to cutomise it? I am just a junior learner, Could you show me by codes? Thanks a lots.
|
|
|
|
|
humm, I dont think there will be any code that will meet ur exact requirement, you can check on custom control here in cp just type custom control in the search edit box in this page.
P.R.A.K.A.S.H
|
|
|
|
|
|
At it's simplest, you need to have a derived class which ignores any input messages; you can add a PreTranslateMessage function (if it's MFC) that simply returns non-zero if the message it has is an input message (WM_xBUTTONx, WM_KEYx or WM_CHAR)
Steve S
|
|
|
|
|
Hello,
NOTE:
I've posted a similar question, but I missed the way of asking it and this is why I'm asking it again. INTRODUCTION:
I need to be able to get access to a shared folder from the beggining because:
1- In our enterprise we have installed linux RH9 in our server.
2- We have logicwin (an accounts program that works on windows, not linux).
3- this program includes logred95 that is the protections server (well, I don't know it's name in english, its one program that reads the keycode from the stack in the lpt1 port of one computer and then shares the protection to the assigned pc's.
4- this program needs to reach the shared folder in the linux os.
5- I cannot access that folder before logging into the OS.
6- this means that everybody that has to work with that program needs to know the password of the user that has the physical protection installed.
7- if our accounts program could work in linux, we could be able to read our security stack from our server and, as the server is always up, theren't would be any problem.
QUESTION:
I should be able to connect to the shared unit into the server and continue being connected after the user has logged in.
Thank you in advance.
|
|
|
|
|
How do i convert for example 2B67 in base 16 to decimal in base 10??
There is no command in sprintf??
|
|
|
|
|
can you send the code sippnet how you are stored the base16 data?
P.R.A.K.A.S.H
|
|
|
|
|
I'm using libpcap, and capturing the header of each packet.
While it is a udp header, I will get the source port, byte 1 and byte 2. I'm reading one byte at the time with get(), so I cat them into one string.
Probably I have put myself in a hard position to convert the string with hexadecimal numbers to decimal
code:
int main(){
...
while(!inFile.eof)
{
inFile.get(bin);
...
if(count == 35)
{
sprintf(port1, "02X", bin);
}
if(count == 36)
{
sprintf(port, "%s%02X", port1, bin);
}
}
|
|
|
|
|
i guess this should be apporch
thing are ok but with slight modification.
while(!inFile.eof)
{
inFile.get(bin);
...
if(count == 35)
{
sprintf(port1, "&d", bin);
}
if(count == 36)
{
sprintf(port, "%s%d", port1, bin);
}
int no = atoi(port);
}
P.R.A.K.A.S.H
|
|
|
|
|
When debugging a VC++ app , the stack frame is empty. any idea what settings need to be applied for this. OR What could be the cause for this?
|
|
|
|
|
I don't want to state the obvious but have you checked it is a Debug Build and not a Release Build?
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Hi Guys,
I didnt Get an answer to this from anyone.Thats Why reposting it again...
Iam displaying overlays to screen using the DeviceContext.I display it to screen by calling the "PlayEnhMetaFile" Function.Everything worked fine until I Tried to load an emf File which contains slanted Lines.When I run my application & load this Emf file everything is fine.But when I scroll the emf file using scroll bars,the lines appears like ZigZag,not slanted any more.This problem seems to appear only when the slanted lines goes away from the clientarea while scrolling & comes back again(ie: when Iam doing a Repaint).......
Any idea what could be the cause...
Thanks..
|
|
|
|
|
In MDI application, Ctrl+Tab is the default accelerator to switch childframe, and Ctrl+F4 is the default accelerator to close active childframe.
My question is: where can I find the code that MFC implements this function, or how can I change the default behavior?
|
|
|
|
|
all you need to do is add a accelerator i.e ctrl tab to new command_id
P.R.A.K.A.S.H
|
|
|
|