Click here to Skip to main content
15,904,934 members

Videos


Page 8 of 54
3 4 5 6 7 8 9 10 11 12


.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
141. How to run a code everytime the user in which my program is running logs in the user from lock screen?
Wait for the Session Switch event.[^]. static void SystemEvents_SessionSwitch(object sender, Microsoft.Win32.SessionSwitchEventArgs e) { if (e.Reason == SessionSwitchReason.SessionUnlock) { //unlock screen ...
Desktop Programming » Windows Forms »
Michael Haephrati Updated: 15 Nov 2020
Rating: 5.00/5 ( (2 votes))
.

()
» »
Updated:
Rating: ()
142. C++ allow paste from clipboard to edit box
Unless an Edit Box (CEdit Class | Microsoft Docs[^]) is read only or disabled, you should be able to paste text into it by default. No need to do anything. Just make sure that: 1. Read Only is False 2. Disabled is false
Michael Haephrati Updated: 8 Nov 2020
Rating: 2.44/5 ( (4 votes))
143. Hide TaskBar in C through Win32
I was just looking for a way of hiding the Task Bar and came across this question. After doing some research and running some tests, I am going to show how to hide the Task Bar, regardless of using Full screen mode or not. static HWND...
Desktop Programming » Win32 »
Michael Haephrati Updated: 20 Oct 2020
Rating: 5.00/5 ( (2 votes))
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
144. How to get the current window width
What you need is the following code: CWnd* pwndParent = this->GetParent(); CRect rc; pwndParent->GetWindowRect(&rc);
Michael Haephrati Updated: 16 Sep 2020
Rating: 3.46/5 ( (5 votes))
145. How do I replace the default right click context menu in a file open dialog box with my own?
I would like to create a custom File Open dialog where I can replace the default context menu options shown when the user right clicks one of the files in the list, with my own context menu. What I have tried: adding: UINT CALLBACK...
Michael Haephrati Updated: 9 Sep 2020
Rating: ( (No votes))
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
146. How can I convert integer to cstring in visual C++ MFC?
To convert an Integer into a CString, the best way would be: CString MyString; int MyInt; MyString.Format(L"%d",MyInt); Another way is to use the std library's to_wstring[^], and then cast the result to CString. In that case, your code will...
Michael Haephrati Updated: 7 Sep 2020
Rating: 5.00/5 ( (3 votes))
147. Memory corruption(exception read access violation 0x3e8.) after dynamic loading in C++ using VS2017
When you use hModule = LoadLibrary("siJCLJOb.dll"); pFunc = (FIRERULE) GetProcAddress(hModule, "FireRule"); There is the option that LoadLibrary will fail, and if it does, the next line will cause an Access Violation. Change it to: ...
Michael Haephrati Updated: 7 Sep 2020
Rating: ( (No votes))
148. MFC - how to locate the cfile opened by cwinapp::opendocumentfile
You need to call OpenDocumentFile and the return value is the handle you are looking for. CMFCApplication3App *myApp; Document *myDoc = myApp->OpenDocumentFile(_T("myfilename.txt")); Then, myDoc should hold the handle to the file.
Michael Haephrati Updated: 7 Sep 2020
Rating: ( (No votes))
.

()
» »
Updated:
Rating: ()
149. Saving a windows size position and state in MFC
I found these 2 functions to work for me. void MyDialog::LoadDialogPlacement() { static WINDOWPLACEMENT last_wp = {}; // Load last stored DB version WINDOWPLACEMENT *wp = new WINDOWPLACEMENT; GetStoredWindowPlacement(&wp); if...
Michael Haephrati Updated: 5 Sep 2020
Rating: 3.86/5 ( (7 votes))
.

()
» »
Updated:
Rating: ()

Page 8 of 54
3 4 5 6 7 8 9 10 11 12