|
<rant>
ES_PASSWORD - totally useless, don't know why it exists.
</rant>
I had this same problem until I found (after much digging) the easy way. Check out: CEdit::SetPasswordChar[^]
From the documentation:
Parameters
ch
Specifies the character to be displayed in place of the character typed by the user. If ch is 0, the actual characters typed by the user are displayed.
Apparently if an Edit control has ES_PASSWORD set when it is created (or subclassed or... lordy, who knows exactly when), MFC calls SetPasswordChar() with a value of '*'. ES_PASSWORD does not seem to be a true window style attribute, but can the documentation point that out in an obvious manner? Nooooo!
Anyway, see if that won't give you a cleaner solution. It's working well for us in our shop.
Just remember... Offer void where prohibited. Your mileage may vary.
Later,
Dan
Remember kids, we're trained professionals. Don't try this at home!
|
|
|
|
|
WOW!
Thanks, I'll give that a shot when I get into work.
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Worked like a charm!!!
Thanks, that is much cleaner!
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Hi every body,
I use this code to stay my window on top :
::SetWindowPos(m_hWnd ,HWND_TOPMOST,294,251,415,240,SWP_SHOWWINDOW);
is there any way so that my window keep alwas the focus?
Thanks in advance
georges
|
|
|
|
|
Why three separate posts with the same question?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
sorry,
just an error while i tried to post my message. I received error updating...
|
|
|
|
|
CHEICKNA TRAORE wrote: just an error while i tried to post my message. I received error updating...
From my experience, 99% of the time this error is received, it is after the post has been made, but before the results are sent back to the client's browser.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Yeah, it's happened to before also.
Steve
|
|
|
|
|
Hi every body,
I use this code to stay my window on top :
::SetWindowPos(m_hWnd ,HWND_TOPMOST,294,251,415,240,SWP_SHOWWINDOW);
is there any way so that my window keep alwas the focus?
Thanks in advance
|
|
|
|
|
Hi every body,
I use this code to stay my window on top :
::SetWindowPos(m_hWnd ,HWND_TOPMOST,294,251,415,240,SWP_SHOWWINDOW);
is there any way so that my window keep alwas the focus?
Thanks in advance
Georges
|
|
|
|
|
You could try resetting the focus back to your window in its onfocus() event, but I'm not entirely sure it will work.
Besides, a window that always has the focus will irritate an awful lot of users. The purpose of Windows is to allow users to switch to other tasks. To deliberately break this model will frustrate and anger many users...
The StartPage Randomizer | The Timelapse Project
|
|
|
|
|
How to prepare data structure for capturing data from a machine??
Chaitanya
|
|
|
|
|
Can you be a bit more specific? Your question could be answered in a dozen different ways.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
I would like to store the data from the sensor after intializing or sending all the commands to the sensor i,e for continous data output??
|
|
|
|
|
Does this "sensor" have an API? How is it connected to the computer?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
|
How to record/process data sent from the sensor????
|
|
|
|
|
Having not coded very much serial stuff before, this is just a guess. Those other articles I referenced would have shown this, but I think you'll use something like:
HANDLE hPort = CreateFile("\\\\.\\COM1", ..., OPEN_EXISTING, ...);
ReadFile(hPort, ...); Also see here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
am using Send() and Recieve() functions
lnewlength = send(lnewSocket,(char*)lnewData,lDataLenght,0);
lnewlength= recv(lnewSocket,(char*)lData,1024,0);
|
|
|
|
|
Can those be used with serial communications, or are they for sockets only?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
|
Then why are you using them with a serial port?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Actually, if i would like to store the data of the "lData" parameter when lnewData[]={.....}(soem bytes) in storearray[], the how could i do? Is this correct??
if(lnewdata[8]==({..,..,..,..,..})
{
BYTE storearray[1024]= lData;
}
can i work so with a string???
|
|
|
|
|
chaitanya22 wrote: Is this correct??
I doubt it.
chaitanya22 wrote: if(lnewdata[8]==({..,..,..,..,..})
What is lnewdata ? Are you comparing or (supposed to be) assigning?
chaitanya22 wrote: BYTE storearray[1024]= lData;
What is lData ?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|