How can I access controls of one class from another class.
Your question should probably be something like, "How can I access controls on one dialog from a separate dialog?" While it is not a good idea to do so directly (see "loose coupling"), a better way would be to send a message to the parent (the one that owns the control) dialog.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
I have created a simple dialog application where it can perform crud operations but how I did it was I open a connection an do some operations inside most of the buttons as I'm still starting out as a beginner(noob).
What will be a good approach to separate all the database related operations in another class? or keeping as it is, is it a good practice?
Since you're asking the question, you probably already know the answer.
The Master said, 'Am I indeed possessed of knowledge? I am not knowing. But if a mean person, who appears quite empty-like, ask anything of me, I set it forth from one end to the other, and exhaust it.'
― Confucian Analects
we want to decrease right of non client area in edit control and draw edge in that but wparam in nccalcsize return 1 only not 0 and lparam no give us rgrc0 or rgrc1 value to change it , if somebody try this please tell me its way and show the pictures to do like this
We already know from OP what you want to decrease...
However, we don't know how you are doing it. Richard MacCutchan asked you to post the code related to your problem, but you only have posted some irrelevant lines of your code.
Last Visit: 31-Dec-99 19:00 Last Update: 26-Feb-21 17:53