|
In your OnInitDialog
CPropertySheet sheet;
CPropertyPage page;
sheet.AddPage(&page);
sheet.Create(this, WS_CHILD | WS_VISIBLE, WS_EX_CONTROLPARENT);
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
Hi,
that works
Thank you!!!
termal
|
|
|
|
|
How can we create the Message Que.?
How can we implement user defined messages...?
CAn we create user defined message que in VC++
|
|
|
|
|
We read a book about windows programming.
I'm not being horrible - proper answers to these question would require more than a few paragraphs. And the fact that you think these are few-line answers tells me that you are just starting with message driven programming. And that's a big leap of thinking.
Short answers to help you with google:
1/ GetMessage
2/ RegisterWindowMessage or just use WM_USER+N as appropriate.
3/ The user messages go in the normal message queue.
I hope that helps a little, and wish you luck with your learning. And if I misunderstood your question, I hope the short answers help too.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Iain Clarke wrote: We read a book about windows programming.
I love your humour.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I did try and give a nice answer two lines down, but the first line just popped into my head and I couldn't resist! I try and soften my raw snarky instincts, otherwise I'd be insufferable (and probably was when I was 19).
In his defense, when I first did X-Windows [*], I didn't realise just how much of a conceptual jump there was between console programs chewing their way through main and event driven programming... Just like pointers are impossible until you click that they're just an integer pointing to a memory address where something lives.
Iain.
[*] Win32 / MFC came later. Same ideas though.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Hi all,
I am getting this error:
1>d:\svn\licensin system\work package\updatemanager\updateservice\devicelocation.h(9) : error C2143: syntax error : missing ';' before '<'
1>d:\svn\licensin system\work package\updatemanager\updateservice\devicelocation.h(9) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
from my class declaration below:
class CDeviceLocationInformation;
typedef CAtlList <CDeviceLocationInformation*> CDeviceLocationInfoList;
class CDeviceLocationInformation
{
public:
CDeviceLocationInformation()
Why is this?
thanks,
Jayjay
|
|
|
|
|
Did you include the header file of CAtlList ? (Don't know which one it is but you should be able to find that easily in the docs).
|
|
|
|
|
for the benefit of other readers, the errors messages are :
C2143: syntax error : missing ';' before '<'
C4430: missing type specifier - int assumed. Note: C++ does not support default-int
For my part, I don't understand why you're defining the typedef before defining the class itself ?
Why don't you just move the typedef after the definition of the class, which would also let you remove the forward declaration.
but this is was just a side note.
As you don't bring us the exact code sample, I cannot say exactly what's wrong. Cédric proposed a possible cause, have you checked for it ?
Also, are you sure you didn't forget a ';' anywhere in your header before the typedef instruction ?
At last, have you checked the MSDN for those error codes to know the possible causes for them ?
see C2143[^] and C4430[^]
|
|
|
|
|
monsieur_jj wrote: typedef CAtlList <cdevicelocationinformation*> CDeviceLocationInfoList;
Notice the compiler is complaining about the token that precedes the < symbol (i.e., CAtlList )? Have you included atlcoll.h ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have used the CRicheEditView. I am selcting the character in the editor. When i clcik on the selected character it getting deselected and cursor is moving into begining of the charcter. How to avoid his deselction and movement of cursor?
Raghu
|
|
|
|
|
maybe you need to search for Drag n' Drop implementation...
otherwise I don't see what you're trying to do, as it appears to me like a standard Windows behavior.
|
|
|
|
|
Hi thank you for your Suggestion.
I am using CRicheDotView as hex editor and using selected single nibble as a cursor.
But when it is selcted i want to avoid clciking on selected nibble again. In my cas whats happening is when i clicked on the selected character it deselcting. I dont that to happen.
Also Drag and drop works for only OLE Items i think.
Raghu
|
|
|
|
|
ahh, Hex editor, that's different.
I believe you have to overload the event handler of the "Mouse Left Button Down" (I don't remember by heart currently) to make the automatic selection
|
|
|
|
|
HI,
Even I have overloadd the OnLButtonDown and checking for CrSel.cpMin and cpMax position as well.
It is working fine in Debugging mode, but when exected without debug mode it is giving problem.
Raghu
|
|
|
|
|
Raghu Panduranga wrote: It is working fine in Debugging mode, but when exected without debug mode it is giving problem
any error message by chance ?
|
|
|
|
|
If you're still struggling, I've used Eugene Pustovoyt[^]'s CPPDumpCtrl[^] in the past with great success. A nice little hex / ascii display / editor.
Though I think the article name needs work!
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Hi,
Thank you for sharing infromation. Please let me know how can i use tool tip here?
Raghu
|
|
|
|
|
I have no idea, off the top of my head. When I display the hex data, anything I want to know about is on the screen already (address, hex value, and ascii value). As there is no additional information, I don't need tooltips for the control.
As it inherits from CWnd, I imagine you can use CWnd::EnableTooltip(s) (can't remember exactly). But when I use tooltips, I roll my own, as I like tips that vary depending on where I am in the control.
There are many articles on tooltips, and I would also recommend you look at CPopupText from MSDN magazine June 2001, written by Paul DiLascia. Back then I was learning [*], and his articles taught me a lot.
Iain.
[*] I still am - but I hope I have the easy stuff in my head now!
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
Thank you for your sharing information i think it is helpful for me.
Raghu
|
|
|
|
|
increment operator is not executing when debug in release mode.
Ex
int i = 0;
the below two statement are not executing
i++;
++i;
But in Debug it is working fine.
|
|
|
|
|
How do you verify that ? Is the i variable used afterwards or not ? Could you post some code.
It is maybe due to optimization: if your variable is never used later, the compiler can detect and decide that it is not usefull to increment it (I guess).
|
|
|
|
|
Code below is only executing the first and second line and skiping the third line in bold
char *strCalcCode = strCalcCodesName;
strcpy_s( strCalcCode, CALC_CODES_LTH, CALC_CODE_STR[CC_ASTR] );
strCalcCode += strlen (CALC_CODE_STR [CC_ASTR]);
|
|
|
|
|
What are you doing with this strCalcCode variable later ? If you don't use it later, the compiler probably optimizes the code and decided that this line of code is unnecessary (which is the case because it doesn't do anything usefull in the case you don't use strCalcCode later on).
pallaka wrote: Code below is only executing the first and second line and skiping the third line in bold
Again, how are you verifying that ?
|
|
|
|
|
Edited: Cedric asked the question while I was reading the forum. Sorry!
------------------
I'll ask the same question again:
How are you verifying that?
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|