Parameter to hide textbox/label at runtime through SendMessage()
-
Hello, I want to hide textbox/label at run time, Could you please let me know what's the 2nd parameter to pass to below WIN API function, SendMessage(hComponentName, ?, 0, 0); Best Regards, Supriya
-
Hello, I want to hide textbox/label at run time, Could you please let me know what's the 2nd parameter to pass to below WIN API function, SendMessage(hComponentName, ?, 0, 0); Best Regards, Supriya
How about
WM_SHOWWINDOW
?"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
-
How about
WM_SHOWWINDOW
?"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
WM_SHOWWINDOW[^] only notifies the given window that it is about to be hidden or shown, it doesn't actually hide or show the window.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
-
Hello, I want to hide textbox/label at run time, Could you please let me know what's the 2nd parameter to pass to below WIN API function, SendMessage(hComponentName, ?, 0, 0); Best Regards, Supriya
I don't think you can do that with SendMessage (except for maybe doing it indirectly if you show and hide the given window in the message handler), you should use ShowWIndow[^] for this.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
modified on Tuesday, December 1, 2009 2:45 PM
-
WM_SHOWWINDOW[^] only notifies the given window that it is about to be hidden or shown, it doesn't actually hide or show the window.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
I realized that right after I responded but got distracted with something else before fixing it. Thanks.
"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
-
I don't think you can do that with SendMessage (except for maybe doing it indirectly if you show and hide the given window in the message handler), you should use ShowWIndow[^] for this.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
modified on Tuesday, December 1, 2009 2:45 PM
Thank you very much for suggestion! I tried below and it worked for me :) hComponentName = GetDlgItem(hDlg,IDC_STATIC3); SendMessage(hComponentName, SW_HIDE, 1, 0); Thanks again. Best Regards, Supriya.
-
Thank you very much for suggestion! I tried below and it worked for me :) hComponentName = GetDlgItem(hDlg,IDC_STATIC3); SendMessage(hComponentName, SW_HIDE, 1, 0); Thanks again. Best Regards, Supriya.
You can send SW_HIDE to a window to make it hidden? That's completely new to me, i learn something every day, thanks.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
-
You can send SW_HIDE to a window to make it hidden? That's completely new to me, i learn something every day, thanks.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Sometimes you just have to hate coding to do it well. <
-
Code-o-mat wrote:
You can send SW_HIDE to a window to make it hidden?
Only if that window processes the WM messages and responds accordingly. Most standard window types in a dialog will do this.
ok :) Best Regards, Supriya Tonape