|
hemlat wrote: But how can I do it in MFC.
You have access to __argc and __argv whether you use MFC or not. Also check out the app's m_lpCmdLine member.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
thanks for your reply.This is what I needed.
|
|
|
|
|
there are a bunch of command line parser classes out there, to take care of splitting the cmd line into flags and options.
for example: CCmdLine - command line parser[^]
|
|
|
|
|
LPTSTT strCmdLine = GetCommandLine();
You should do next?
studing is processing in this life.
|
|
|
|
|
Hi,
If we want to reset the content of ListBox simply we will use ResetContent() function.
But how can I reset content of Listcontrol.Can anyone help me.
|
|
|
|
|
DeleteAllItems() will remove everything from the list control.
|
|
|
|
|
|
Hi friends,
I've encountered a problem using Sliderbar in my MFC program.
I've set the MaxRange to 86400 (for example: m_slider1.SetRange(0, 86400);), but once I want to change the position of it and handle the new position in the OnHScroll(), I would receive incorrect position. Now, I would like to know whether there is any limitation for setting Maximum range to the slider bar or not?
Thanks in advance.
|
|
|
|
|
Mohammad Khodaea wrote: ...handle the new position in the OnHScroll(), I would receive incorrect position.
What is incorrect? How are you verifying this?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
For example, I set the sliderbar to the end point and I expect to get value of Maximum (here 86400), but I don't see it and I watched 32423 (a value lower than maximim).
|
|
|
|
|
The nPos variable is actually a short int because Windows sends the position in the high word of the WM_HSCROLL message's WPARAM value. Instead, call GetScrollInfo(&scrollInfo, SIF_TRACKPOS) in your OnHScroll() handler.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
how to identify the mac address of pc from switch port?
modified on Tuesday, June 2, 2009 8:52 AM
|
|
|
|
|
Use some MIB browser.
The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.
Advertise here – minimum three posts per day are guaranteed.
|
|
|
|
|
Please Help
How to set custom tab order in VC++ application ?
|
|
|
|
|
Press Ctrl + D , then use your left button to click the controls!
|
|
|
|
|
Hello,
I do a whole line selection in a CRichEditCtrl (Version 2.0, embedded in a CRichEditView) by the following
1. Caret is left on the line start of a empty or not empty line with at least 2 lines following after this line
2. Select whole line with Shift + Down-arrow (only one key press)
=> There are differences in the selection behaviour depending on the following line (the line after the line that has the caret before selecting) beeing empty or not.
- All seems to be ok when the second line is NOT EMPTY => only ONE line is shown as selected.
- But when the second line is EMPTY => TWO lines are shown as selected after one key-press what is very unusual for me.
Example:
(the "#" stands for the blue selection, the "|" is the caret position before the line selection)
Normal behaviour:
line n: "|line with caret at start"
line n+1: "not empty line below"
line n+2: "..."
Shift+Down => Selection looks like this:
line n: "########################" (one line selected)
line n+1: "not empty line below"
line n+2: "..."
Strange behaviour:
line n: "|line with caret at start"
line n+1: "" (empty line )
line n+2: "..."
Shift+Down => Selection looks like this:
line n: "########################" (line is selected)
line n+1: "#" (following empty line is selected also !?)
line n+2: "..."
I would like to have a behaviour like the Visual Studio editor e.g. where with Shift+DOWN only one line is selected in every case. Does somebody know how I can achive this? (The CEdit-class for example does not have this selection behaviour.)
Or is there a reason for this behaviour?
Thank you in advance for your ideas
Sebastian
thank you
modified on Tuesday, June 2, 2009 9:13 AM
|
|
|
|
|
I am happy with every little hint!
thank you
|
|
|
|
|
|
|
hi,
How to query the device manager in Windows?
Thanks
SYAMLAL
|
|
|
|
|
The device manager uses the SetupDixxx APIs to enumerate all classes of devices installed on the system.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Hi,
I wanted to answer the same question and ended up posting an artice about it here Device Information[^]. Please note this demo solution contains three projects, 2 of which use WTL and one that runs in a Command Window.
|
|
|
|
|
Thanks a lot.. Jonathan
SYAMLAL
|
|
|
|
|
Hi Jonathan,
i tried to use your logic in my application. I have a VC6.0 Win32 console based applicaion, in which i need to enumerate the serial ports. But the CLSIDFromString(wBuf, &Guid) function always fills Guid with zeroes. Do you have any idea what could be the problem.
NB:- guiddef.h header file is not there in my installation, i commented this header inclusion and the code compiles.
Also, your console based demo application works fine in my PC, and list out all ports perfectly.
SYAMLAL
|
|
|
|
|
Hello,
I need to fill the button in a ComboBox with GradientFill(). How can I access it?
And also - how to add borders to the ComboBox when the mouse is over?
I looked this: http://www.codeproject.com/KB/combobox/listboxexByEricSanchez.aspx, but there appears an error, when I try to use the simular idea with combo
|
|
|
|