|
It not working Here. I have Win32 Dialog Based Application
Earlier I was using the Code when Some press the Butoon. Now I have put it in
WM_INITDIALOG But it is still not working
The Value of Combo Box Handle (hComboBox ) is 0x002804c2
And the Value of LRESULT from SendMessage() is 0.
|
|
|
|
|
I dont know what was the problem. But i deleted the Combo box And Add new One. And Now Its working Fine.
|
|
|
|
|
If its working so you dont need to help .
|
|
|
|
|
GauranG033But nothing is added in ComboBox.
There is a difference between nothing being added vs. not being able to see the added item. Since SendMessage() returned 0 , the item was added.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi
Can any one told me how we can change the caption font of button
can any one told me how we can do this. if possible plz send me any example
Regard's
Kaushik
|
|
|
|
|
|
You can use of SetFont function.
|
|
|
|
|
Hey guys , I vaguely remember an API like GetFilePath, that gives you the directory path of a file when you pass the complete file path. like
c:\windows\temp.txt ------>> c:\windows\
You remember that one? And there were also many functions like that to process the "\" "/" like that and to get root folder and many more things. damn nothing strikes for me now. I stronly remember I found them in MSDN, but couldn't spot any of them now. Please help!
|
|
|
|
|
|
I tried a hundred time "Shell" + api + path and all combination, I got all craps. The worst crap was the page that took me to "Shell("mspaint.exe")" .. A vb function just like createProcess. VB!!
Anyway I'm so happy I've found the exact page in MSDN . to you!
|
|
|
|
|
I'm bookmarking it with a grim face, like you do when your pet runs out of the compound making us to run through all the streets to find him. Good you got him, now with few smacks on his a*se, I'm kicking him back to his kenel.
|
|
|
|
|
|
What about PathRemoveFileSpec() ?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: PathRemoveFileSpec()
Yup, I was just trying to spot this guy, found and used it here[^].
Btw David, I have a simple question related to above, If you want to clear a char buffer[] (stack allocated) , what's the proper way?
like :
char szTemp[256];
<br />
strcpy(szTemp,"");<br />
*szTemp = 0;<br />
ZeroMemory(..)<br />
Memset(..)<br />
*szTemp = NULL;<br />
|
|
|
|
|
VuNic wrote: If you want to clear a char buffer[] (stack allocated) , what's the proper way?
like :
char szTemp[256];
I would use:
char szTemp[256] = { '\0' }; for initialization, and then memset() later on to clear its contents.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Dear all
after i debugged my system, output showed me below: DlgOpenCylinder.cpp(376) : error C2601: 'OnCypasteImage' : local function definitions are illegal
Error executing cl.exe.
how to resolve this issue?
thanks
Li Zhiyuan
15/092007
|
|
|
|
|
probably missing a closing '}' on a function. Look just above the first error.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</A>
|
|
|
|
|
li zhiyuan wrote: how to resolve this issue?
By reading here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I suggest you read the first post in this forum titled "How to get an answer to your question".
|
|
|
|
|
shpid3r wrote: As for now, I have only discovered ExtTextOut(), to which I must provide x,y coordinates for starting to write at, and which doesn`t automatically add a scrollbar when reached the end of the screen.
So, did any of you find or know a better solution to this ?
It sounds like you should use a rich text control. If you are using MFC, you can use CRichEditCtrl.
Nathan
|
|
|
|
|
Hi,
If an application has more than one top level windows,
how can I determine which is the main window.
Thanks!
|
|
|
|
|
What defines the "main window"?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Today a fishing day for you?
|
|
|
|
|
I hear the familiar cry heard on sportfishing boats...
"HOOK UP!!!"
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I receive a 20 word message and two words of this message define a floating value;
unsigned short message [20]; // Message buffer
e.g. message [2] and message[3] define a float with the mantissa in the lower byte of message[3].
Could I get the floating value by doing this:-
buffer[0] = message[2];
buffer[1] = message[3];
union
{
float data;
unsigned short buff[2];
}convert;
float val = convert.data;
Or what is the best way to get this 32 bit embedded floating point value.
Andy.
|
|
|
|